NEW.新手使用指南
1.帮助与文档说明
2.参数说明
2.1 HTML代码参数
2.2 配置文件参数
2.3 灵活的使用参数
2.4 播放器右键自定义(New)
3.应用说明
3.1 基础应用
3.2 高级应用
4.代码使用
4.1 [A]swfObject调用
4.2 [B]object调用
4.3 [C]Ebemb调用
4.4 [D]JS形式调用
4.5 JS函数交互
4.6 广告相关
[1] 前置广告
[2] 视频广告
[3] 暂停广告
[4] 角标广告
[5] 后置广告
[6] 滚动文字广告
4.7 开灯关灯
4.8 高清模式
4.9 分享模式
4.10 视频模式
4.11 RTMP点播
4.12 RTMP直播
4.13 视频结束动作
4.14 色彩自定义
4.15 移动终端适配(New)
4.16 HLS直播(m3u8适配)
4.17 适配PC/安卓/苹果
vwin德赢
4.19 播放器logo设定
4.20 视频文件说明
4.21 提示点MoveTip
4.22 列表连播功能
5.各种CMS/论坛应用
5.1 织梦CMS
5.2 PHPCMS
5.3 帝国CMS
5.4 动易CMS
5.5 CCVMS
5.6 MaxCMS马克斯
5.7 飞飞影视系统
5.8 PHPWIND论坛(New)
5.9 Discuz论坛(New)
5.10 小蚂蚁门户(New)
5.11 苹果CMS电影(New)
5.12 光线CMS整合(New)
5.13 Kesion科汛CMS(New)
5.14 PHPvod系统(New)
5.15 wordpress视频插件
6.与程序语言结合
6.1 与ASP+Access
优德w88.com
6.3 与.net的应用
6.4 与jsp的应用
7.常见问题
7.1 视频文件mime类型
7.2 视频文件压制软件
7.3 RTMP协议

4.11 RTMP点播

 

RTMP(Real Time Messaging Protocol)实时消息传送协议是Adobe Systems公司为Flash播放器和服务器之间音频、视频和数据传输开发的私有协议。

本播放器,既支持http协议,也rtmp协议。并且只须设置rtmp服务器JcScpServer参数,即可,很方便,其它代码不变。

 

例(4.11)-1:rtmp协议下的播放器调用代码示例

<script type="text/javascript" src="/player/js/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.yourServer.com/vod"); //rtmp流媒体服务器地址
so.addVariable("JcScpVideoPath","mp4:test.mp4"); //文件地址
so.addVariable("JcScpImg","/player/images/startpic.jpg"); //视频缩略图
so.addVariable("JcScpFile","/player/CuSunV4set.xml"); //配置文件
<!-- HTML代码参数/End -->
so.write("CuPlayer");
</script>

 

例(4.11)-2:rtmp协议下的播放器调用代码示例

<script type="text/javascript" src="/player/js/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.yourServer.com/vod"); //这一行注释掉(rtmp流媒体服务器地址)
so.addVariable("JcScpVideoPath","mp4:2016/06/test.mp4"); //文件地址
so.addVariable("JcScpImg","/player/images/startpic.jpg"); //视频缩略图
so.addVariable("JcScpFile","/player/CuSunV4set.xml"); //配置文件
<!-- HTML代码参数/End -->
so.write("CuPlayer");
</script>

 

例(4.11)-3:rtmp协议下的播放器调用代码示例

第1部分:

<script type="text/javascript" src="/player/js/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("JcScpFile","/player/CuSunV4set.xml"); //配置文件
<!-- HTML代码参数/End -->
so.write("CuPlayer");
</script>

 

第2部分,以下是配置文件CuSunV4set.xml代码如下 :

......
<Flashvars_Set
JcScpServer ="http://www.yourServer.com/vod"
JcScpVideoPath="mp4:test.mp4"

ShowJcScpAFront = "yes"
JcScpCountDowns = "10"
JcScpCountDownsPosition = "top-right"
......
......