Fancybox和jwplayer在ipad中分组图像和视频问题

时间:2014-04-24 08:19:53

标签: fancybox

我有fancybox / jwmediaplayer画廊,混合视频和图像我可以在桌面浏览器中播放视频,但在ipad中,当我从图库中单击下一步时,我只能看到加载。检查以下代码..

$(document).ready(function() {
$(function() {
    $(".jwVideo").click(function() {
        var myVideo = this.href; // Dont forget about 'this'
        $.fancybox({
            padding : 0,
            content: '<div id="video_container" style="width:640px;height:385px;">Loading the player ... </div>',
            autoSize: true,
            helpers : { 
            title : { type : 'inside' }
          },
            afterShow: function(){
                jwplayer("video_container").setup({ 

                    file: myVideo,
                    autostart: 'true',
                    width: 640,
                    height: 385,`enter code here`
                    modes: [
        { type: 'html5' },
        { type: 'flash', src: 'assets/jwplayer/jwplayer.flash.swf' }
    ]

                });
            }
        });
        return false;
    });
});  
 });

0 个答案:

没有答案