【发布时间】:2014-05-08 22:30:17
【问题描述】:
我知道这个问题在这里被问过很多次,但我无法从他们那里得到一个标准的解决方案。所以需要帮助。
我只需要在 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"
}
}
]
});
仅供参考:我正在使用 ffmpeg、libx264 将我的所有视频转换为 .mp4 格式 它不会在 Chrome 和 IOS 中加载视频,适用于 FF 中的 flash。
我在这里做错了什么?
【问题讨论】:
-
我可以看到一个链接到你正在运行的地方吗?
标签: html flash video html5-video jwplayer