This commit is contained in:
rulingcom 2023-05-03 11:46:21 +08:00
parent 4d54742586
commit a9aa797b74
1 changed files with 3 additions and 0 deletions

View File

@ -327,6 +327,9 @@
event_dict[count_key] = event_dict[array_key].length; event_dict[count_key] = event_dict[array_key].length;
yt_player.addEventListener('onStateChange',onPlayerStateChange); yt_player.addEventListener('onStateChange',onPlayerStateChange);
banner_wrap.trigger('resize'); banner_wrap.trigger('resize');
if(i == 0 && $iframe.parents(".youtube_slide[data-autoplay=\"1\"]").length != 0){
yt_player.mute().playVideo();
}
}else{ }else{
console.log("YT player changes its variables!") console.log("YT player changes its variables!")
} }