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