Fix sound playing from replaced WebM thumbnails in previewed/inlined quotes.
This commit is contained in:
parent
f2bfea604d
commit
29b78bf377
@ -61,6 +61,8 @@ class Clone extends Post
|
|||||||
@file.thumb = $ '.fileThumb > [data-md5]', file
|
@file.thumb = $ '.fileThumb > [data-md5]', file
|
||||||
@file.fullImage = $ '.full-image', file
|
@file.fullImage = $ '.full-image', file
|
||||||
|
|
||||||
|
@file.thumb.muted = true if @file.videoThumb
|
||||||
|
|
||||||
# Contract thumbnails in quote preview
|
# Contract thumbnails in quote preview
|
||||||
ImageExpand.contract @ if contractThumb
|
ImageExpand.contract @ if contractThumb
|
||||||
|
|
||||||
|
|||||||
@ -50,6 +50,7 @@ ImageLoader =
|
|||||||
poster: thumb.src
|
poster: thumb.src
|
||||||
textContent: thumb.alt
|
textContent: thumb.alt
|
||||||
className: thumb.className
|
className: thumb.className
|
||||||
|
video.setAttribute 'muted', 'muted'
|
||||||
video.dataset.md5 = thumb.dataset.md5
|
video.dataset.md5 = thumb.dataset.md5
|
||||||
video.style[attr] = thumb.style[attr] for attr in ['height', 'width', 'maxHeight', 'maxWidth']
|
video.style[attr] = thumb.style[attr] for attr in ['height', 'width', 'maxHeight', 'maxWidth']
|
||||||
video.src = file.URL
|
video.src = file.URL
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user