我知道这个问题在这里已经被问过很多次了,但我无法从他们那里找到一个标准的解决方案。所以需要帮助。带有HTML5的JW播放器
我只需要在jwplayer 5.10中显示我的.mp4视频,这样它就可以在Flash版本中显示,否则它将在html5版本中显示。
这里是我的代码:
jwplayer("video_holder").setup({
'height': '300',
'width': '100%',
modes: [
{ type: "flash",
src: "player.swf",
config: {
file: "http://example.com/path/to/video.mp4",
}
},
{ type: "html5",
config: {
file: "http://example.com/path/to/video.mp4"
}
}
]
});
FYI:我将我的所有视频的MP4格式,使用的ffmpeg,libx264 这不加载在Chrome和IOS的视频,在FF的FLASH作品。
我在这里做错了什么?
我可以看到一个链接到你正在运行的位置吗? – emaxsaun