Try and hack around autoplay
This commit is contained in:
parent
94fabf56a8
commit
1395e7ff82
@ -118,7 +118,9 @@
|
|||||||
else if (video.canPlayType("application/vnd.apple.mpegurl")) {
|
else if (video.canPlayType("application/vnd.apple.mpegurl")) {
|
||||||
video.src = videoSrc;
|
video.src = videoSrc;
|
||||||
video.addEventListener("loadedmetadata", function () {
|
video.addEventListener("loadedmetadata", function () {
|
||||||
|
document.getElementById('video').muted = true;
|
||||||
document.getElementById('video').play();
|
document.getElementById('video').play();
|
||||||
|
document.getElementById('video').muted = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user