来自apache的flowplayer流媒体mp4

来自apache的flowplayer流媒体mp4,apache,streaming,mp4,flowplayer,Apache,Streaming,Mp4,Flowplayer,我在这方面遇到了一些问题。我认为我做对了(基于)。该剪辑开始播放良好,但当我跳到剪辑中尚未加载的部分时,它会返回到文件/视频的开头 遗憾的是,大部分使用的浏览器都是IE6:( 在Redhat上运行的Apache2 我用ffmpeg创建了一个mp4文件。 运行qt faststart 1.mp4 1.qt.mp4 已安装模块flvx.c 增加: LoadModule flvx_module modules/mod_flvx.so AddHandler flv-stream .flv 到apach

我在这方面遇到了一些问题。我认为我做对了(基于)。该剪辑开始播放良好,但当我跳到剪辑中尚未加载的部分时,它会返回到文件/视频的开头

遗憾的是,大部分使用的浏览器都是IE6:(

在Redhat上运行的Apache2

我用ffmpeg创建了一个mp4文件。 运行qt faststart 1.mp4 1.qt.mp4

已安装模块flvx.c

增加:

LoadModule flvx_module modules/mod_flvx.so
AddHandler flv-stream .flv
到apachehttpd.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>

flowplayer(“播放器”,“flash/flowplayer-3.0.3.swf”{
剪辑:{
网址:'http://servername/player/media/1.qt.mp4',
//默认提供程序:“h264streaming”
提供程序:flashmbed.isSupported([9115])?“h264streaming”:“lighttpd”,
缩放:“适合”,
自动缓冲:是的,
自动播放:错误,
缓冲区长度:3
},
日志:{
级别:“调试”
},
插件:{
H264流媒体:{
url:'flash/flowplayer.h264streaming-3.0.5.swf'
},
控制:{
url:'flash/flowplayer.controls-3.0.3.swf',
//哪些按钮可见,哪些不可见?
剧本:错,
全屏:对,
//洗涤器是时间轴/游戏头组合的一个众所周知的昵称
洗涤器:是的
}
}
});
有人有什么建议吗


首先,感谢您,您需要查看您的apache是否配置为正确查找部分视频。您可以通过传递诸如my_vide_path.mp4?start=10之类的get参数,使其在10秒内启动。如果它在10秒内成功启动,则apache设置正确,您需要使flowplayer正常工作。如果apache没有如果设置正确,那么即使正确的flowplayer配置也不会有帮助

但我怀疑你的apache设置是否正确。你告诉apache处理.flv文件,而你却在使用mp4s

我已经成功地将它与来自的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(“播放器”,“flash/flowplayer-3.0.3.swf”{
剪辑:{
网址:'http://servername/player/media/1.qt.mp4',
默认提供程序:“h264streaming”
},
插件:{
H264流媒体:{
url:'flash/flowplayer.h264streaming-3.0.5.swf'
}
}
});

我使用了更新的flowplayer swf,而不是h264的swf,用于PSUEDOSTREAting的flowplayer插件,因为它与更新版本的flowplayer一起工作,而h264版本显然没有。谢谢你,我已经安装了这个模块并使用wget进行了测试,在文件中跳过了大约五分钟,它工作正常,但是我的播放器没有播放任何内容,我在apache日志中看不到任何错误,我在访问日志中看不到被命中的mp4文件,它只适用于flow player 3.0.3吗?我在下面的代码中有“默认提供程序”而不是“提供程序”时出错:[code]flowplayer(“player”,“flash/flowplayer-3.2.6.swf”,{clip:{url:'',提供程序:'h264streaming',自动播放:true},插件:{h264streaming:{url:'flash/flowplayer.h264streaming-3.0.5.swf'}});[/code]从flowplayer网站上的H264流媒体swf更改为PSUEDOSTRING。我也无法让H264流媒体swf与最新版本的flowplayer配合使用,但它与flowplayer网站上的PSUEDOSTRING swf配合使用。效果非常好。谢谢