1
0
app/assets/js/unmuteVideo.js
2022-05-18 12:31:00 +03:00

11 lines
261 B
JavaScript

$(document).ready(function(){
var video = document.getElementById("vjs_video_3_html5_api");
var timer = setInterval(()=>{
if(video.readyState === 4){
video.muted = false;
clearInterval(timer);
}
},5000);
});