mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-13 16:37:52 +00:00
makes video controls usable
This commit is contained in:
parent
c95cdeac18
commit
fed0b5e81a
@ -1014,7 +1014,9 @@ function webtorrentFilePreview(file, previewContainer, isMedia) {
|
||||
elem.pause();
|
||||
}
|
||||
});
|
||||
imagePreview.find("video").removeAttr("autoplay");
|
||||
var $vid = imagePreview.find("video");
|
||||
$vid.removeAttr("autoplay");
|
||||
$vid.on('click mouseup', muteEvent);
|
||||
} else {
|
||||
file.getBlobURL(function (err, url) {
|
||||
if (err) return console.error(err)
|
||||
|
Loading…
Reference in New Issue
Block a user