add audio control feature for youtube

This commit is contained in:
邱博亞 2021-11-14 15:09:37 +08:00
parent 53ab232e11
commit 17a48a3b1a
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@
if ($video.length>0){
$(ele).jPlayer("mute", !$(ele).data().jPlayer.options.muted);
}else{//youtube
console.log('control youtube audio');
$(ele).find('iframe').data("yt_player").unmute();
}
})
$(ele).append(audio_div);