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

11 lines
233 B
JavaScript

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