fix videojs for firefox

This commit is contained in:
jkhsjdhjs 2017-12-02 19:26:21 +01:00
parent aeae405f64
commit 68b583283b

View File

@ -62,12 +62,16 @@
<script src="./s/video.min.js"></script>
<script src="./s/videojs.persistvolume.js"></script>
<script>
(function() {
var vid1 = videojs( document.querySelector(".video-js") );
vid1.persistvolume({
namespace: "f0ck"
});
})();
(function() {
var vid1 = videojs( document.querySelector(".video-js") );
vid1.persistvolume({
namespace: "f0ck"
});
if(vid1.autoplay() && !vid1.paused() && vid1.hasClass('vjs-paused')) {
vid1.pause();
vid1.play();
}
})();
</script>
<script>
$(document).ready(() => {