fix error
This commit is contained in:
parent
bba25f596c
commit
5cf2afaecf
|
@ -68,7 +68,12 @@
|
||||||
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();
|
var player = $self.find('iframe').data("yt_player");
|
||||||
|
if (player.isMuted()){
|
||||||
|
player.unMute();
|
||||||
|
}else{
|
||||||
|
player.mute();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$self.append(audio_div);
|
$self.append(audio_div);
|
||||||
|
@ -88,9 +93,11 @@
|
||||||
ad_banners_count++;
|
ad_banners_count++;
|
||||||
})
|
})
|
||||||
if (typeof onYouTubeIframeAPIReady !== 'function'){
|
if (typeof onYouTubeIframeAPIReady !== 'function'){
|
||||||
|
$(document).ready(function() {
|
||||||
$(document).delegate(".jarallax-video-audio",'touchstart,click',function(){
|
$(document).delegate(".jarallax-video-audio",'touchstart,click',function(){
|
||||||
$(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(){
|
||||||
|
|
Loading…
Reference in New Issue