我在解决这个问题上遇到了一些问题。我认为我基于http://flowplayer.org/forum/5/14664#post-14830做得很对)。剪辑开始正常播放,但当我跳到剪辑中尚未加载的部分时,它只是返回到文件/视频的开头
遗憾的是,使用的浏览器大部分都是IE6 :(
运行在Redhat上的Apache2
我已经用ffmpeg创建了一个mp4文件。运行qt-faststart 1.mp4 1.qt.mp4
已安装的mod_flvx.c
添加:
LoadModule flvx_module modules/mod_flvx.so
AddHandler flv-stream .flv到Apache httpd.conf
使用示例页面:
<script type="text/javascript">
flowplayer("player", "flash/flowplayer-3.0.3.swf", {
clip: {
url: 'http://servername/player/media/1.qt.mp4',
// default provider: 'h264streaming'
provider: flashembed.isSupported([9, 115]) ? 'h264streaming' : 'lighttpd',
scaling: 'fit',
autoBuffering: true,
autoplay: false,
bufferLength: 3
},
log: {
level: 'debug'
},
plugins: {
h264streaming: {
url: 'flash/flowplayer.h264streaming-3.0.5.swf'
},
controls: {
url: 'flash/flowplayer.controls-3.0.3.swf',
// which buttons are visible and which not ?
play:false,
fullscreen:true,
// scrubber is a well known nickname to the timeline/playhead combination
scrubber: true
}
}
});
</script>有人有什么建议吗?
谢谢
发布于 2011-03-03 00:58:38
首先,您需要查看您的apache是否配置为正确查找视频的某些部分。您可以通过传递一个像my_vide_path.mp4?start=10这样的get参数来让它在10秒内启动。如果它在中成功启动了10秒,则apache设置正确,您需要使flowplayer工作。如果apache没有正确设置,那么即使是正确的flowplayer配置也无济于事。
但我怀疑你的apache设置是否正确。您正在告诉apache处理.flv文件,而您却在使用mp4s。
我已经成功地将其与来自http://h264.code-shop.com/trac/wiki的apache模块一起使用。
您需要将该模块添加并加载到apache中,并告诉apache使用它来处理.mp4文件。
下一步将是使用get参数?start=10进行测试,以查看它是否正确查找。
在那之后,你需要做的就是:
<script type="text/javascript">
flowplayer("player", "flash/flowplayer-3.0.3.swf", {
clip: {
url: 'http://servername/player/media/1.qt.mp4',
default provider: 'h264streaming'
},
plugins: {
h264streaming: {
url: 'flash/flowplayer.h264streaming-3.0.5.swf'
}
}
});
</script>我使用的是更新的flowplayer swf,而不是h264的swf,psuedostreaming的flowplayer插件,因为它适用于新版本的flowplayer,显然h264 one不能。
https://stackoverflow.com/questions/5168550
复制相似问题