Never mind
This commit is contained in:
parent
60eab865b8
commit
ed72db6057
@ -65,7 +65,7 @@ function init() {
|
||||
var loaded = 0
|
||||
var streams = document.querySelectorAll('video')
|
||||
streams.forEach(function(stream) {
|
||||
stream.addEventListener('canplay', function(event) {
|
||||
stream.addEventListener('loadedmetadata', function(event) {
|
||||
loaded += 1
|
||||
if(loaded === streams.length) {
|
||||
callback()}})})
|
||||
|
Loading…
x
Reference in New Issue
Block a user