Jquery 使用jwplayer 6.11视频不能在ipad上播放
我们使用jwplayer6.11进行视频播放.mp4和.flv,但不使用Jquery 使用jwplayer 6.11视频不能在ipad上播放,jquery,customization,jwplayer,iso,Jquery,Customization,Jwplayer,Iso,我们使用jwplayer6.11进行视频播放.mp4和.flv,但不使用 损失7 iPhone 当时我如何为iPad修复这个 function playvideo() { jwplayer("mediaplayer").setup({ playlist: [{ sources: [ { file: "<?php echo $this->getUrl().'Cont
function playvideo() {
jwplayer("mediaplayer").setup({
playlist: [{
sources: [
{ file: "<?php echo $this->getUrl().'Content/video/'.trim($_product->getVideourl());?>",
//type: 'html5',
}
],
title: "Play"
}
],
controlbar: "none",
height:388,
width: 610,
streamer: "rtmp://s14flalja9b5hr.cloudfront.net/cfx/st",
startparam: "ec_seek",
fallback: false,
repeat: false,
autostart: true,
primary: 'flash',
bufferlength: '30',
stretching: 'fill',
onpause: 'true',
events: {
onReady: function() {
var t = setInterval(function() {
jwplayer("mediaplayer").play();
clearInterval(t);
}, 500);
},
onComplete: function() {
var t = setInterval(function() {
jwplayer("mediaplayer").remove();
clearInterval(t);
}, 500);
},
}
});
函数播放视频(){
jwplayer(“mediaplayer”)。设置({
播放列表:[{
资料来源:[
{文件:“”,
//键入:“html5”,
}
],
标题:“游戏”
}
],
控制栏:“无”,
身高:388,
宽度:610,
拖缆:rtmp://s14flalja9b5hr.cloudfront.net/cfx/st",
startparam:“ec_seek”,
后退:错误,
重复:错,
自动启动:对,
初级:“闪光”,
bufferlength:'30',
拉伸:“填充”,
onpause:'正确',
活动:{
onReady:function(){
var t=setInterval(函数(){
jwplayer(“mediaplayer”).play();
净间隔(t);
}, 500);
},
onComplete:函数(){
var t=setInterval(函数(){
jwplayer(“mediaplayer”).remove();
净间隔(t);
}, 500);
},
}
});
RTMP是一种仅支持Flash的协议。无论您使用何种播放器脚本,它都需要Flash。它不能在移动设备(iOS、Android)上使用,因为它们都不支持Flash
任何移动设备上都没有自动启动功能-这是设备本身的设计方式,您不能覆盖它。@RaviPatel,您应该使用以下代码在闪存设备(如PC)中播放rtmp,在不受支持的闪存设备中播放Laps和html5
jwplayer("myElement").setup({
playlist: [{
image: "/assets/myVideo.jpg",
sources: [{
file: "rtmp://example.com/application/mp4:myVideo.mp4"
},{
file: "/assets/myVideo.mp4"
}]
}],
height: 360,
primary: "flash",
width: 640
});
这里,
file: "rtmp://example.com/application/mp4:myVideo.mp4" is used for flash mode
及
这是适合您的解决方案,请尝试一下,希望能有所帮助。您在这里使用的是RTMP,您的一些代码是针对JW5的(例如streamer),不是JW6-在何处更改不知道请使用我的逻辑为JW6添加新代码如果您想支持iOS或Android,请不要使用RTMP。我已从代码中删除拖缆:line,但不工作ios8或7中的flv文件。flv也只是闪存。iOS需要MP4。
file: "/assets/myVideo.mp4"is used for mobile devices like iOs and android..