1
0
Fork 0
mirror of https://github.com/owncast/owncast.git synced 2024-10-28 10:09:39 +01:00

Try and hack around autoplay

This commit is contained in:
Gabe Kangas 2020-06-02 10:42:24 -07:00
parent 94fabf56a8
commit 1395e7ff82

View file

@ -118,7 +118,9 @@
else if (video.canPlayType("application/vnd.apple.mpegurl")) {
video.src = videoSrc;
video.addEventListener("loadedmetadata", function () {
document.getElementById('video').muted = true;
document.getElementById('video').play();
document.getElementById('video').muted = false;
});
}
</script>