fix name id of video

This commit is contained in:
Jesús
2021-06-23 15:35:01 -05:00
parent 61b4518335
commit 2c56a24711

View File

@@ -273,9 +273,9 @@
} }
}); });
const vid = document.getElementById('js-video-player');
if(!playability_error){ if(!playability_error){
// play the video if autoplay is on // play the video if autoplay is on
let vid = document.querySelector('video');
if(autoplayEnabled){ if(autoplayEnabled){
vid.play(); vid.play();
} }