Video style

main
Bob Mottram 2021-03-07 12:06:01 +00:00
parent 1329175cbb
commit 16468b5c0b
1 changed files with 5 additions and 3 deletions

View File

@ -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