add audio control feature for youtube
This commit is contained in:
parent
53ab232e11
commit
17a48a3b1a
|
@ -60,7 +60,7 @@
|
||||||
if ($video.length>0){
|
if ($video.length>0){
|
||||||
$(ele).jPlayer("mute", !$(ele).data().jPlayer.options.muted);
|
$(ele).jPlayer("mute", !$(ele).data().jPlayer.options.muted);
|
||||||
}else{//youtube
|
}else{//youtube
|
||||||
console.log('control youtube audio');
|
$(ele).find('iframe').data("yt_player").unmute();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
$(ele).append(audio_div);
|
$(ele).append(audio_div);
|
||||||
|
|
Loading…
Reference in New Issue