我安装了F4Player来播放HTTP MP4 Livestream。我设置了视频网址,当与VLC播放相同的网址时,一切正常。当我点击f4player中的play时,流被加载(显示在网络mobitor中),但是在控制台日志中显示:
initializating ...
Stream URL: null
Thumbnail: thumbnail.jpg
NetStatusEvent: NetConnection.Connect.Success
NetConnection connected to null
Play file: http://my-server.com:3000/T-8468-3329-3.ts
Video dimensions: 480x270
NetConnection is: true
Autoplay: http://my-server.com:3000/T-8468-3329-3.ts
NetStatusEvent: NetStream.Play.StreamNotFound
源代码如下所示:
<div id="player">
<embed type="application/x-shockwave-flash" src="player.swf?v1.3.5" width="480" id="f" name="f" height="270" flashvars="skin=skins/mySkin.swf&thumbnail=thumbnail.jpg&video=http://my-server.com:3000/T-8468-3329-3.ts&live=1" allowScriptAccess="always" allowfullscreen="true" bgcolor="#000000"/>
<noembed>
You need Adobe Flash Player to watch this video. <br>
<a href="http://get.adobe.com/flashplayer/">Download it from Adobe.</a>
<a href="http://gokercebeci.com/dev/f4player" title="flv player">flv player</a>
</noembed>
</div>
我错过了哪些配置?
答案 0 :(得分:1)
您的流媒体服务器是什么?让我们考虑一下RTMP。你能做到的最好方法是:
<embed type="application/x-shockwave-flash" src="player.swf" width="480" id="f1" name="f1" height="270" flashvars="skin=skins/mySkin.swf&stream=rtmp://yourserverip/Streamings&streamname=my_stream_id&live=1&thumbnail=thumbnail.jpg" allowScriptAccess="true" allowfullscreen="true" bgcolor="#000000"/>
我认为您应该将代码更改为类似的内容。并且不要使用端口一次。