[wowza]wowza安装CentOS上教程
如何在CentOS上搭建Wowza服务器
1. 下载RPM
http://www.wowzamedia.com/store.html
2. 安装配置Java
3. 运行下载的WowzaMediaServer RPM
sudo chmod +x WowzaMediaServer-4.0.rpm.bin
sudo ./WowzaMediaServer-4.0.rpm.bin
4. 启动Wowza服务器并输入序列号
./usr/local/WowzaMediaServer/bin/startup.sh
(若没有找到WowzaMediaServer文件夹,说明没有安装成功,可以先尝试卸载
rpm -e WowzaMediaServer,
然后重新执行上面的第三部安装)
5. 以服务方式启动
/sbin/service WowzaMediaServer start
6. 安装实例程序来测试
./usr/local/WowzaMediaServer/examples/install...
按照以下例子来测试live stream
http://wiki.medialooks.com/RTMP_streaming_with_Wowza_Media_Server
7. 应用实例
可以下载极酷阳光播放器来实测,下载地址 http://www.cuplayer.com/CuSunPlayer/download.html
示例代码参考如下:
- <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");
- <!-- HTML代码参数/Begin -->
- 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");
- <!-- HTML代码参数/End -->
- so.write("CuPlayer");
- </script>
如何在CentOS上搭建Wowza服务器
热门文章推荐
- [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流要求用户名密码