网页视频播放器加载中,请稍后...
Loading...
Loading...

断点续播功能/记忆时间功能/记录播放进度(代码参考):

断点续播功能代码参考(示例Memory-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","myCuPlayer","600","410","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/CuSunV2set.xml"); //播放器配置文件地址
//视频文件及略缩图--------------------------

so.addVariable("JcScpServer","rtmp://demo.cuplayer.com/vod"); //流媒体服务器地址
so.addVariable("JcScpVideoPath","mp4:test.mp4"); //流媒体文件地址

so.addVariable("JcScpImg","player/images/start.jpg"); //视频缩略图地址
so.addVariable("JcScpCookieOpen","yes"); //是否开启记忆功能
so.addVariable("JcScpCookieName","c00108"); //本视频Cookie识别ID
so.addVariable("JcScpStarTime","0");
//视频点播播放起始时间
so.addVariable("JcScpSharetitle","极酷阳光断点续播功能/记忆时间功能官方演示实例");
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>
<!--极酷播放器/代码结束-->

定点播放功能/从指定时间点开始播放(代码参考):

定点播放功能代码参考(示例Memory-2)

<!--极酷播放器/代码开始-->
<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","myCuPlayer","600","410","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/CuSunV2set.xml"); //播放器配置文件地址
//视频文件及略缩图--------------------------

so.addVariable("JcScpServer","rtmp://demo.cuplayer.com/vod"); //流媒体服务器地址
so.addVariable("JcScpVideoPath","mp4:test.mp4"); //流媒体文件地址

so.addVariable("JcScpImg","player/images/start.jpg"); //视频缩略图地址
so.addVariable("JcScpCookieOpen","yes"); //是否开启记忆功能
so.addVariable("JcScpCookieName","c00108"); //本视频Cookie识别ID
so.addVariable("JcScpStarTime","240");
//视频点播播放起始时间(本例注意这一行)指定时间点
so.addVariable("JcScpSharetitle","极酷阳光断点续播功能/记忆时间功能官方演示实例");
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>
<!--极酷播放器/代码结束-->

添加广告示意(代码参考):

断点续播功能代码参考(示例Memory-3)

<!--极酷播放器/代码开始-->
<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","myCuPlayer","600","410","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/CuSunV2set.xml"); //播放器配置文件地址
//视频文件及略缩图--------------------------

so.addVariable("JcScpServer","rtmp://demo.cuplayer.com/vod"); //流媒体服务器地址
so.addVariable("JcScpVideoPath","mp4:test.mp4"); //流媒体文件地址

so.addVariable("JcScpImg","player/images/start.jpg"); //视频缩略图地址
so.addVariable("JcScpCookieOpen","yes"); //是否开启记忆功能
so.addVariable("JcScpCookieName","c00108"); //本视频Cookie识别ID
so.addVariable("JcScpStarTime","0");
//视频点播播放起始时间
//-前置Flash广告-----------------------------
so.addVariable("ShowJcScpAFront","no");
so.addVariable("JcScpCountDownsPosition","top-left");
so.addVariable("JcScpCountDowns","5");
so.addVariable("JcScpAFrontW","600");
so.addVariable("JcScpAFrontH","410");
so.addVariable("JcScpAFrontPath","images/a650x418.swf");
so.addVariable("JcScpAFrontLink","http://demo.cuplayer.com/CuSunPlayer/demo1.html");
//-暂停广告参数-----------------------------
so.addVariable("ShowJcScpAPause","yes"); 
so.addVariable("JcScpAPauseW","300"); 
so.addVariable("JcScpAPauseH","250"); 
so.addVariable("JcScpAPausePath","images/a300x250.swf"); 
so.addVariable("JcScpAPauseLink","http://demo.cuplayer.com/CuSunPlayer/demo3.html");
//-角标广告参数-----------------------------
so.addVariable("ShowJcScpACorner","yes"); 
so.addVariable("JcScpACornerW","85"); 
so.addVariable("JcScpACornerH","50"); 
so.addVariable("JcScpACornerPath","images/a370x250.swf"); 
so.addVariable("JcScpACornerPosition","bottom-right");
so.addVariable("JcScpACornerLink","http://demo.cuplayer.com/CuSunPlayer/demo4.html");
//-后置广告参数-----------------------------
so.addVariable("ShowJcScpAEnd","yes"); 
so.addVariable("JcScpAEndW","400"); 
so.addVariable("JcScpAEndH","300"); 
so.addVariable("JcScpAEndPath","images/a400x300.swf");
so.addVariable("JcScpAEndLink","http://demo.cuplayer.com/CuSunPlayer/demo5.html");
//-----------------------------------------
so.addVariable("JcScpSharetitle","极酷阳光播放器(CuSunPlayerV2.5)版使用官方演示实例");
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>
<!--极酷播放器/代码结束-->

特色功能提示与注意事项:

提示说明

断点续播功能: 在播放中,播放器会自动“记住播放位置”。等下次播放时,即可从上次停止位置继续播放影片。
记忆时间功能: JS可以输出和记录播放时间,为程序人员提供便利;
记录播放进度: JS可以输出和记录播放时间,为程序人员使用方面提供便利;
定点播放功能: 要想跳过影片的前面部分,从指定位置开始播放,可以通过指定“起始时间点”的方式来确定影片的播放位置,即可实现从指定位置开始播放。

1. 本播放器是基于极酷阳光播放器V3.5核心程序,增加断点续播功能、记忆时间功能、记录播放进度、定点播放功能;
2. 本播放器要求用户有RTMP,RTMPE等流媒体服务器环境做支持;
3. 用户方最好有程序人员配合,因为本播放器有些应用会涉及与程序文件的交互(播放器支持asp,php,aspx,jsp语言);