[Wowza流媒体]wowza直播服务器的配置-源及边缘服务器配置
[Wowza流媒体]wowza直播服务器的配置-源及边缘服务器配置
A:源服务器配置
1.进入配置文件 /usr/local/WowzaMediaServer-3.6.2/conf
2.创建live目录
mkdir live
3.拷贝conf目录下的Application.xml配置文件到live下
cp Application.xml live/
4.修改StreamType值为:
<StreamType>liverepeater-origin</StreamType> //配置为源服务器
5.修改该配置文件LiveStreamPacketizers
<LiveStreamPacketizers>cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer</LiveStreamPacketizers>
6.修改配置文件HTTPStreamers
<HTTPStreamers>cupertinostreaming,smoothstreaming,sanjosestreaming</HTTPStreamers>
7.进入 /usr/local/WowzaMediaServer-3.6.2/application 新建application
mkdir live
8.重启服务
使用vlc测试工具模拟android和ios进行测试
B:边缘服务器配置
1.进入配置文件 /usr/local/WowzaMediaServer-3.6.2/conf
2.创建live目录
mkdir live
3.拷贝conf目录下的Application.xml配置文件到live下
cp Application.xml live/
4.修改StreamType值为:
<StreamType>liverepeater-edge</StreamType> //配置为边缘服务器
5.修改该配置文件LiveStreamPacketizers
<LiveStreamPacketizers>cupertinostreamingrepeater, smoothstreamingrepeater , sanjosestreamingrepeater</LiveStreamPacketizers>
6.修改该配置文件的originURL选项:
<originURL>rtmp://[wowza-address]:port(端口)/live</originURL>
7.进入 /usr/local/WowzaMediaServer-3.6.2/application 新建application
mkdir live
8.重启服务
9.应用的效果,基于支持rtmp协议的极酷阳光播放器:
代码参考:
- <script type="text/javascript" src="/player/images/swfobject.js"></script>
- <div class="video" id="CuPlayer"> <b> <img src="/player/images/loading.gif" />
网页视频播放器加载中,请稍后...</b> </div>- <script type="text/javascript">
- var so = new SWFObject("/player/player.swf","ply","980","460","9","#000000");
- so.addParam("allowfullscreen","true");
- so.addParam("allowscriptaccess","always");
- so.addParam("wmode","opaque");
- so.addParam("quality","high");
- so.addParam("salign","lt");
- so.addVariable("JcScpServer","rtmp://www.cuplauyer.com/vod"); //rtmp流媒体服务器地址
- so.addVariable("JcScpVideoPath","mp4:test.mp4"); //文件地址
- so.addVariable("JcScpImg","/player/Images/flashChangfa2.jpg");
- so.addVariable("JcScpFile","/player/CuSunV2Set.asp");
- so.write("CuPlayer");
- </script>
热门文章推荐
- [rtmp]流媒体协议RTMP,RTSP与HLS有什么不同?
- [Wowza]流媒体服务器Wowza Media Server的安装与启动教程
- [wowza]wowza推流发布和播放(推流RTMP流)介绍
- [wowza]Wowza Streaming Engine 4的安装与配置教程
- [wowza]Wowza Media Server 安装教程(含windows/Linux平台)
- [wowza]RTP直播流推送到另一个远端的服务器
- [AS3]Wowza Media Server服务器
- [wowza]wowza推RTSP流要求用户名密码