fix error

This commit is contained in:
邱博亞 2021-11-15 14:38:48 +08:00
parent c05bf41151
commit 69d56fcd6a
1 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@
if ($video.length>0){ if ($video.length>0){
$self.jPlayer("mute", !$self.data().jPlayer.options.muted); $self.jPlayer("mute", !$self.data().jPlayer.options.muted);
}else{//youtube }else{//youtube
$self.find('iframe').data("yt_player").unmute(); $self.find('iframe').data("yt_player").unMute();
} }
}); });
$self.append(audio_div); $self.append(audio_div);
@ -81,9 +81,9 @@
ad_banners_count++; ad_banners_count++;
}) })
if (typeof onYouTubeIframeAPIReady !== 'function'){ if (typeof onYouTubeIframeAPIReady !== 'function'){
$(document).on('touchstart',".jarallax-video-audio",function(event){ /*$(document).on('touchstart',".jarallax-video-audio",function(event){
$(this).trigger('click'); $(this).trigger('click');
}); });*/
if(window.yt_players == undefined) if(window.yt_players == undefined)
window.yt_players = {}; window.yt_players = {};
function onYouTubeIframeAPIReady(){ function onYouTubeIframeAPIReady(){