mirror of https://gitlab.com/bashrc2/epicyon
Video style
parent
1329175cbb
commit
16468b5c0b
|
@ -258,14 +258,16 @@ def _addEmbeddedVideo(translate: {}, content: str,
|
||||||
continue
|
continue
|
||||||
url = w
|
url = w
|
||||||
content += \
|
content += \
|
||||||
'<center>\n<video width="' + str(width) + '" height="' + \
|
'<center><figure id="videoContainer" ' + \
|
||||||
str(height) + '" controls>\n'
|
'data-fullscreen="false">\n' + \
|
||||||
|
' <video id="video" controls ' + \
|
||||||
|
'preload="metadata">\n'
|
||||||
content += \
|
content += \
|
||||||
'<source src="' + url + '" type="video/' + \
|
'<source src="' + url + '" type="video/' + \
|
||||||
extension.replace('.', '') + '">\n'
|
extension.replace('.', '') + '">\n'
|
||||||
content += \
|
content += \
|
||||||
translate['Your browser does not support the video element.']
|
translate['Your browser does not support the video element.']
|
||||||
content += '</video>\n</center>\n'
|
content += '</video>\n</figure>\n</center>\n'
|
||||||
return content
|
return content
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue