mirror of https://gitlab.com/bashrc2/epicyon
Video style
parent
c19a072c97
commit
1329175cbb
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue