Video style

main
Bob Mottram 2021-03-07 12:01:33 +00:00
parent c19a072c97
commit 1329175cbb
1 changed files with 5 additions and 2 deletions

View File

@ -969,7 +969,10 @@ def getPostAttachmentsAsHtml(postJsonObject: {}, boxName: str, translate: {},
galleryStr += '</div>\n' galleryStr += '</div>\n'
attachmentStr += \ attachmentStr += \
'<center><video width="400" height="300" controls>' '<center><figure id="videoContainer" ' + \
'data-fullscreen="false">\n' + \
' <video id="video" controls ' + \
'preload="metadata">\n'
attachmentStr += \ attachmentStr += \
'<source src="' + attach['url'] + '" alt="' + \ '<source src="' + attach['url'] + '" alt="' + \
imageDescription + '" title="' + imageDescription + \ imageDescription + '" title="' + imageDescription + \
@ -977,7 +980,7 @@ def getPostAttachmentsAsHtml(postJsonObject: {}, boxName: str, translate: {},
extension + '">' extension + '">'
attachmentStr += \ attachmentStr += \
translate['Your browser does not support the video tag.'] translate['Your browser does not support the video tag.']
attachmentStr += '</video></center>' attachmentStr += '</video></figure></center>'
attachmentCtr += 1 attachmentCtr += 1
elif _isAudioMimeType(mediaType): elif _isAudioMimeType(mediaType):
extension = '.mp3' extension = '.mp3'