mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Try and hack around autoplay
This commit is contained in:
parent
94fabf56a8
commit
1395e7ff82
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue