makes video controls usable

This commit is contained in:
erqan 2016-09-03 17:25:40 +03:00 committed by GitHub
parent c95cdeac18
commit fed0b5e81a

View File

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