我有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;
});
});
});