码迷,mamicode.com
首页 > 其他好文 > 详细

基于Red5的视频直播平台

时间:2016-07-31 19:25:06      阅读:341      评论:0      收藏:0      [点我收藏+]

标签:

搭建环境: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");                  
so.addVariable("JcScpVideoPath","test"); //直播流名称
so.addVariable("JcScpAutoPlay","yes"); //是否自动播放
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>

技术分享

 

基于Red5的视频直播平台

标签:

原文地址:http://www.cnblogs.com/byteworld/p/5723555.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!