基于Red5的视频直播平台
搭建环境:Win2008 server + jdk1.8+red5-server-1.0.6
下载地址:https://github.com/Red5
修改启动配置文件(修改为jdk路径):
安装模版Demo:http://127.0.0.1:5080/installer/
下载OBS发布到流媒体服务器上:
开启串流:实现直播
表示开启正常状态
页面展示基于jsp:
采用:CuSunPlayer播放器
<script type="text/javascript"> var so = new SWFObject("../player/player.swf","myCuPlayer","1020","605","9","#000000"); so.addParam("allowfullscreen","true"); so.addParam("allowscriptaccess","always"); so.addParam("wmode","opaque"); so.addParam("quality","high"); so.addParam("salign","lt"); //播放器设置文件----------------------------- so.addVariable("JcScpFile","../player/CuSunV3setLive.xml"); //配置文件 /* 以下这行仅为rtmp直播时写法示例,直播信号是关的,请对应换成你自己的直播流使用 */ so.addVariable("JcScpServer","rtmp://192.168.32.11/live"); <br />so.addVariable("JcScpVideoPath","test"); //直播流名称 <br />so.addVariable("JcScpAutoPlay","yes"); //是否自动播放 <br />so.addVariable("JcScpImg","../player/images/startpic.jpg"); //视频缩略图 so.addVariable("JcScpSharetitle","TV直播"); //视频标题 so.write("CuPlayer"); </script> <script language=javascript src="../player/js/jquery-1.4.2.min.js" type=text/javascript></script> <script language=javascript src="../player/js/action.js" type=text/javascript></script> </div>
相关推荐
hjgreg 2008-05-20
evilvoid 2008-04-17
一点一刻 2010-05-25
疏雨过 2011-02-24
chenjiawei 2010-06-24
SZStudy 2011-08-22
shiaisun 2011-04-13
鹅鹅鹅 2014-10-14
幸福的味道 2017-09-04
liuyanwuyu 2016-09-07