0

我正在尝试将 flowplayer 嵌入到我的客户 vbulletin 论坛中,并在 s3 存储桶中成功处理了基本视频,但在尝试实现 rtmp 时遇到了麻烦。我已经设置好分发,并且可以流式传输到 vbulletin 之外的纯 html 页面,但我试图编写自定义 bbcode 以嵌入帖子中遇到了困难。

我的基本嵌入代码在我的自定义 bbcode 中看起来像这样......

<object id="flowplayer" width="624" height="352" data="http://www.MY_DOMAIN.com/forums /flowplayer/flowplayer-3.2.14.swf" type="application/x-shockwave-flash">  
<param name="movie" value="http://www.MY_DOMAIN.com/forums/flowplayer/flowplayer-3.2.14.swf" />  
<param name="allowfullscreen" value="true" />  
<param name="allowscriptaccess" value="always" /> 
<param name="quality" value="autohigh" />  
<param name="flashvars" value='config={"clip":{"autoPlay":false,"accelerated":true,"url":"{param}"}}' />  
</object>

我的工作 rmtp 流看起来像这样......

<HTML>
<HEAD>
<TITLE>
Streaming Video with Flowplayer
</TITLE>
</HEAD>
<BODY>
<H1>HSL501 Observation Video</H1>
<script type="text/javascript" src="http://www.MY_DOMAIN.com/forums/flowplayer/flowplayer-3.2.11.min.js"></script>
<div id="page">
<div id="rtmpPlayer" style="display:block;width:1000px;height:500px;"></div>
<script language="javascript">
// our custom configuration is given in third argument
flowplayer("rtmpPlayer", "http://www.MY_DOMAIN.com/forums/flowplayer/flowplayer-3.2.14.swf",{
plugins: {
  rtmp: {
    url: 'http://www.MY_DOMAIN.com/forums/flowplayer/flowplayer.rtmp-3.2.11.swf',
    netConnectionUrl: 'rtmp://XXXX.cloudfront.net/cfx/st'
  }
},
clip: {
  url: 'mp4:entries%207.mp4'',
  provider: 'rtmp'
}
});
</script>
</div>
</html>

任何帮助将非常感激

史蒂夫

4

2 回答 2

1

Finally figured it out and hopefully this will help somebody else and save them having to search for hours like I did.

<object width="656" height="420" data="http://www.MY_DOMAIN.com/forums/flowplayer/flowplayer-3.2.14.swf" type="application/x-shockwave-flash">
<param name="movie" value="http://www.MY_DOMAIN.com/forums/flowplayer/flowplayer-3.2.14.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" /><param name="flashvars" value='config={"clip":{"url":"mp4:{param}","bufferLength":1,"provider":"dtfl"},"plugins":{"dtfl":{"url":"http://www.MY_DOMAIN.com/forums/flowplayer/flowplayer.rtmp-3.2.11.swf","netConnectionUrl":"rtmp://XXXXX.cloudfront.net/cfx/st"},"controls":{"backgroundGradient":[0.1,0.3,0,0,0],"bufferGradient":"none","sliderColor":"#272727","backgroundColor":"#000","sliderGradient":"small","buttonOverColor":"#272727","borderRadius":"0px","buttonColor":"#565656","timeColor":"#CCCCCC","progressColor":"#565656","durationColor":"#ffffff","bufferColor":"#CCCCCC","progressGradient":"medium","opacity":1}}}' />
</object>
于 2012-08-21T06:09:24.063 回答
0

Steve,在 Clip --> url 中,您提供的是 My_Domain,而它应该是 S3 中存在的文件的 URI。让我确切地知道当您加载页面和播放视频时发生了什么,因为我们在使其工作时也遇到了问题,但在经过几次修复后终于做到了。

于 2012-08-21T03:19:08.393 回答