我使用http://flowplayer.org/plugins/streaming/bwcheck.html进行VoD上的动态比特率切换,没有任何问题,但我无法获得流水游戏或jwplayer与直播流一起工作。Wowza上实时动态比特率切换的播放器代码
有没有人有任何与Wowza合作的玩家有任何傻瓜代码示例?
编辑:
我加上现场:真实,改变流名称stream_1等上面的例子,但只是得到一个流不存在错误。
谢谢。
我使用http://flowplayer.org/plugins/streaming/bwcheck.html进行VoD上的动态比特率切换,没有任何问题,但我无法获得流水游戏或jwplayer与直播流一起工作。Wowza上实时动态比特率切换的播放器代码
有没有人有任何与Wowza合作的玩家有任何傻瓜代码示例?
编辑:
我加上现场:真实,改变流名称stream_1等上面的例子,但只是得到一个流不存在错误。
谢谢。
在JWplayer中有几种方法可以做到这一点。一个是客户端级别:
<div id="container">Loading the player...</div>
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "/jwplayer/player.swf",
height: 270,
width: 480,
image: "/thumbs/video.jpg",
levels: [
{ bitrate: 300, file: "videos/video_300k.mp4", width: 320 },
{ bitrate: 600, file: "videos/video_600k.mp4", width: 480 },
{ bitrate: 900, file: "videos/video_900k.mp4", width: 720 }
],
provider: "rtmp",
streamer: "rtmp://rtmp.example.com/application/"
});
</script>
另一个是使用服务器端的RSS。从补丁8开始,Wowza V3会生成一个基于smil文件的RSS文件(比如你用于iOS的自适应比特率切换)或者ngrp(由Wowza V3转码器生成)。您使用的网址是:
http://[wowza-ip-address]:1935/[application]/smil:[streamName].smil/jwplayer.rss - JWPlayer adaptive streaming
http://[wowza-ip-address]:1935/[application]/ngrp:[streamName]/jwplayer.rss - JWPlayer adaptive streaming
希望这会有所帮助。
这里应该指出,从JWPlayer V6开始,服务器端播放列表不再使用RSS并将采用标准的SMIL输出。 Wowza 3.5将提供这个jwplayer.smil。 – 2013-06-17 02:38:26
也许你可以解释你使用jwplayer/flowplayer的确切问题? – 2011-12-19 02:40:17