Maybe changing the media event type will work more consistently?

This commit is contained in:
Erik Thuning 2022-03-14 17:08:51 +01:00
parent 11aa7cb994
commit 60eab865b8

@ -65,7 +65,7 @@ function init() {
var loaded = 0
var streams = document.querySelectorAll('video')
streams.forEach(function(stream) {
stream.addEventListener('loadedmetadata', function(event) {
stream.addEventListener('canplay', function(event) {
loaded += 1
if(loaded === streams.length) {
callback()}})})