Browse Source

makes video controls usable

readme-update
erqan 8 years ago committed by GitHub
parent
commit
fed0b5e81a
  1. 4
      js/interface_common.js

4
js/interface_common.js

@ -1014,7 +1014,9 @@ function webtorrentFilePreview(file, previewContainer, isMedia) {
elem.pause(); elem.pause();
} }
}); });
imagePreview.find("video").removeAttr("autoplay"); var $vid = imagePreview.find("video");
$vid.removeAttr("autoplay");
$vid.on('click mouseup', muteEvent);
} else { } else {
file.getBlobURL(function (err, url) { file.getBlobURL(function (err, url) {
if (err) return console.error(err) if (err) return console.error(err)

Loading…
Cancel
Save