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) { @@ -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…
Cancel
Save