帮助中心

点播播放器

目录

设置播放器

在使用JavaScript情况下,如何给播放器设置参数?

例如拷贝播放器代码

<script src='http://static.polyv.net/file/polyvplayer_v2.0.min.js'></script>
<div id='plv_e2e84a73838206ff3b459cd5f05dbaaa_e'></div>
<script>
var player = polyvObject('#plv_e2e84a73838206ff3b459cd5f05dbaaa_e').videoPlayer({
    'width':'600',
    'height':'466',
    'vid' : 'e2e84a73838206ff3b459cd5f05dbaaa_e'
});
</script>

需要给播放器设置flashParams参数,那么在播放器代码后面加一段即可(注意player最后一行的参数代码末尾不能有逗号,否则会出现IE加载不出播放器的情况):

<script src='http://static.polyv.net/file/polyvplayer_v2.0.min.js'></script>
<div id='plv_e2e84a73838206ff3b459cd5f05dbaaa_e'></div>
<script>
var player = polyvObject('#plv_e2e84a73838206ff3b459cd5f05dbaaa_e').videoPlayer({
    'width':'600',
    'height':'466',
    'vid' : 'e2e84a73838206ff3b459cd5f05dbaaa_e',
    'flashParams':{'wmode':'window','allowScriptAccess':'always','allowFullScreen':'false'}
});
</script>

编辑FLASH播放器

editFlashPlay

作用:修改FLASH播放器

URL:

 http://v.polyv.net/uc/services/rest?method=editFlashPlay

1.支持格式

XML/JSON

2.HTTP请求方式

POST,GET

3.请求数限制

TRUE

4.请求参数

参数名 必选 类型及范围 说明
writetoken true string 用户的上传钥匙
vid true string 视频ID
my_br false int 码率1.普通,2.清晰3.高清
width false int flash宽度
height false int flash高度
videoauto false int flash自动播放,1自动播放,0取消自动播放
format false string 默认返回json格式,如果format=xml返回xml格式
jsonp false string 例如,正常情况{error:0,data:””},加 jsonp=a后返回a({error:0,data:””})

5.返回错误列表

返回 说明
0 无错误
1 找不到writetoken关联的user
2 文件为空或者writetoken为空
3 提交的json名字JSONRPC为null
4 提交文件格式不正确
5 readtoken为空
6 分页输入出错
7 vid不能为空
8 找不到方法名

6.返回结果

XML示例

<xml>
<error>0</error>
<data>
<videoplay><height>"300"</height><definition>"1"</definition>    <width>"400"</width><videoauto>"1"</videoauto></videoplay>
</data>
</xml>

JSON示例

{"error":"0","data:{"height":"300","definition":"1","width":"400","videoauto":"1"}}

字段说明:

字段 说明
error 错误提示
height flash高度
definition 视频码率
width
videoauto 是否自动播放

播放器函数接口汇总

供javascript调用的播放器函数接口

函数名 参数 返回 说明 代码示例
j2s_getCurrentTime秒数返回当前播放头的时间,例如视频时长120秒,播放头时间在20.5秒,则返回20.5;页面javascript可不断轮询此播放时间,配合后面暂停/ 播放/停止等函数,对播放过程实现高级的控制。 查看
j2s_pauseVideo 暂停播放当前视频 查看
j2s_resumeVideo 恢复播放当前视频 查看
j2s_stopVideo 停止播放当前视频,并显示结束画面 查看
j2s_seekVideo _second JS控制播放器SEEK功能 ,函数名:j2s_seekVideo(_second)其中参数_second 为秒数 查看
changeVid _vid 在不刷新页面和播放器的情况下,切换到下一个视频,可应用于自定义播放列表,函数名:changeVid(_vid)其中参数_vid 为同一个polyv账号下视频的id 查看
j2s_getFlowCount() 字节数 获取当前流量(单位:字节)的接口供JS调用 查看
j2s_getDuration() 秒数 获取当前视频的播放时长(播放器初始化完毕才可以调用,默认为0,播放器初始化完毕事件为s2j_onPlayerInitOver) 查看
j2s_stayInVideoTime() 秒数 只记录正常播放过程中的观看时间,包括视频缓冲的时间,不包括广告、片头、暂停、片尾等时间。 查看
j2s_realPlayVideoTime() 秒数 只记录正常播放过程中的观看时间,不包括视频缓冲的时间,也不包括广告、片头、暂停、片尾等时间。 查看
j2s_showInterAction() 控制问答播放器显示问答
j2s_hideInterAction() 控制问答播放器隐藏问答

示例代码如下:

<script src="http://static.polyv.net/file/polyvplayer_v2.0.min.js"></script>
<div id="plv_02bfeb00e2ba940698c54cdf517aa9b6_0"></div>
<script>
var player = polyvObject('#plv_02bfeb00e2ba940698c54cdf517aa9b6_0').videoPlayer({
    'width':'708',
    'height':'490',
    'vid' : '02bfeb00e2ba940698c54cdf517aa9b6_0'
});
</script>
    
<span id="stayInVideoTime">当前观看时间(包含视频缓冲时间)是 0 秒</span><br>
<span id="realPlayVideoTime">当前观看时间(不包含视频缓冲时间)是 0 秒</span><br>
<span id="getCurrentTime">当前播放进度是 0 秒</span><br>
<span id="flow">当前流量: 0 字节 | 0 KB</span><br>
<span id="duration">当前视频的时长是 0 秒</span><br>
     
<input type="button" onclick="player.j2s_resumeVideo()" value="播放">
<input type="button" onclick="player.j2s_pauseVideo()" value="暂停">
<input type="button" onclick="player.j2s_seekVideo(30)" value="seek到第30秒">
<input type="button" onclick="player.j2s_stopVideo()" value="停止">
<input type="button" onclick="nextVideo()" value="切换到下一个视频"><br>
     
<script type="text/javascript">
function nextVideo()
{
  player.changeVid("02bfeb00e27ff92a76364b16af2f115e_0");
}
    
function render()
{
        if(player != undefined && player.j2s_stayInVideoTime != undefined && player.j2s_realPlayVideoTime != undefined && player.j2s_getCurrentTime != undefined && player.j2s_getDuration != undefined && player.j2s_getFlowCount != undefined){
        var sec1=player.j2s_stayInVideoTime();
        var sec2=player.j2s_getCurrentTime();
        var sec3=player.j2s_getDuration();
        var sec4=player.j2s_realPlayVideoTime();
        var byte=player.j2s_getFlowCount();
        document.getElementById("stayInVideoTime").innerHTML="当前观看时间(包含视频缓冲时间)是 <span style='color:#ff0000;'>"+sec1+"</span> 秒";
        document.getElementById("realPlayVideoTime").innerHTML="当前观看时间(不包含视频缓冲时间)是 <span style='color:#ff0000;'>"+sec4+"</span> 秒";
        document.getElementById("getCurrentTime").innerHTML="当前播放进度是 <span style='color:#ff0000;'>"+sec2+"</span> 秒";
        document.getElementById("duration").innerHTML="当前视频的时长是 <span style='color:#ff0000;'>"+sec3+"</span> 秒";
        document.getElementById("flow").innerHTML="当前流量: <span style='color:#ff0000;'>"+byte+"</span> 字节 | <span style='color:#ff0000;'>"+byte/1024+"</span> KB";
    }
}
var interval=setInterval("render()",500);
</script>

播放器flashvars参数

参数名 取值 说明
loading_bg_img url 播放器一开始LOADING时的大背景图URL
df 1-3 视频默认播放的清晰度,取值范围1-3 ; 如:df=1 流畅,df=2高清,df=3超清
teaser_time 视频片头图片显示多少秒后消失,如: teaser_time=2.5
watchStartTime 视频默认从第几秒开始播放 , 如 watchStartTime=30.5
watchEndTime 视频播放结束的秒数,如整段视频时长120秒,watchEndTime=60,则视频在播放到60秒时会结束播放,并且只能在60秒内进行seek拖动播放
ban_seek_by_limit_time on/off 用于限制用户只能以自然播放的形式来观看视频,不能通过seek拖拉来快速观看视频。一般是配合“watchStartTime”来使用,默认值为off(如果没有设置该参数,则watchStartTime默认是从0秒开始播放),当设定ban_seek_by_limit_time =on后,并设定了watchStartTime=xx秒,则播放过程中,只能在watchStartTime范围seek拖动视频,或自然播放过程中,播放头时间超过watchStartTime后,可在播放头时间内seek拖动视频
start 截取视频的一部分作为一个独立的视频,如原视频时长60秒,设定start=20后,则视频显示为40秒,并且从原视频的第20秒开始播放。通常配合end参数一起使用。
end 截取视频的一部分作为一个独立的视频,如原视频时长60秒,设定start=20,end=50后,则视频显示为30秒,并且从原视频的第20秒开始播放,到原视频的50秒结束播放。
autoplay string 如果当前是第一个播放的视频,用该参数来控制是否自动播放,0表示关闭自动播放,切换后的视频不受此参数控制
setScreen string 设置视频默认播放的屏幕比例,取值范围,1.“100”:原始,2.“4_3”:4:3,3.“16_9”:16:9,4.“fill”:铺满
setVolumeM Number 视频声音增益,1为原视频音量大小,不变,1.5为原视频音量1.5倍
is_auto_replay on/off 自动循环播放当前视频,默认值为off。注:在播放列表里会忽略本参数。
ban_ad_time on/off on则表示不显示广告倒计时
ban_ui on/off 不显示所有控制栏,右侧栏等按钮,只有播放画面和Loading,设为on为不显示
ban_control on/off 禁止播放器上所有按钮的功能
list_id id 在播放器内显示播放列表
is_play_once on/off 只允许观看一次,播放结束后,返回封面并隐藏控制栏,禁止所有操作
video_bg_color 十六进制 为了让视频背景与网页背景融合,可以用户自定义视频背景颜色,如:ccff00
ban_history_time on/off on表示不记录当前的播放时间,并且不续播
history_video_duration int类型,取正整数,单位为分钟 表示视频时长超过多少分钟时,flash播放器会记录历史播放进度,下次播放时自动续播
ban_skin_big_play_btn on/off 对播放器皮肤的特别定制,可以去掉控制栏的大播放按钮
ban_bar_keep_play_btn on/off 去掉“现代”播放器皮肤的控制栏,只保留居中的大播放按钮
interaction_data string 修改教育答题提交到后台的地址,如http://yoursite.com/getexam

注:以上对时间点的设置后,根据视频文件实际关键帧所在时间点,实际显示的时间可能有几秒的偏差. 如 设定watchStartTime=20 ,而离20秒最近的关键帧位置在18秒,则实际播放时,从18秒开始播放.

HTML代码和多终端代码添加多个flashvars参数示例:

HTML代码(多个flashvars参数用符合“&”连接):

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="416" id="e2e84a738396503c313915c17b5b08ac_e">
<PARAM NAME=movie VALUE="http://player.polyv.net/videos/player.swf">
<param name="allowscriptaccess" value="always">
<param name="wmode" value="Transparent">
<param name="flashvars" value="vid=e2e84a738396503c313915c17b5b08ac_e&watchStartTime=5&watchEndTime=20" /><param name="allowFullScreen" value="true" />
<EMBED src="http://player.polyv.net/videos/player.swf" width="600" height="416"  TYPE="application/x-shockwave-flash" allowscriptaccess="always" wmode="Transparent" name="e2e84a738396503c313915c17b5b08ac_e" allowFullScreen="true" flashvars="vid=e2e84a738396503c313915c17b5b08ac_e&watchStartTime=5&watchEndTime=20"/></EMBED>
</OBJECT>

多终端代码(多个flashvars参数用{}括起来,格式为{“aa”:“bb”,”cc”:“dd”}):

<script src='http://static.polyv.net/file/polyvplayer_v2.0.min.js'></script>
<div id='plv_e2e84a7383891b0f03445b0f683d0b18_e'></div>
<script>
var player = polyvObject('#plv_e2e84a7383891b0f03445b0f683d0b18_e').videoPlayer({
    'width':'600',
    'height':'416',
    'vid' : 'e2e84a7383891b0f03445b0f683d0b18_e',
    'flashvars':{"watchStartTime":"5","watchEndTime":"20"}
});
</script>

播放器事件汇总

播放器在特定时刻会尝试调用下列JS函数,可在页面实现下列函数,捕获播放器事件

函数名 参数 说明
s2j_onPlayerInitOver vid 播放器数据初始化完毕后,Flash调用此函数
s2j_onPlayStart vid 播放器成功加载视频文件并缓冲完成后,即将开始播放第1秒时,Flash调用此函数
s2j_onPlayOver vid 视频播放结束后,Flash调用此函数
s2j_onVideoPlay vid 当触发播放事件时,Flash调用此函数
s2j_onVideoPause vid 当触发暂停事件时,Flash调用此函数
s2j_onVideoSeek vid,position,offset 当触发seek事件时,Flash调用此函数;其中position为seek前的播放进度,offset为seek后的播放进度
s2j_onPptDataParam vid 播放器把PPT数据URL,告诉页面,由页面通知PPT播放列表加载此URL的数据事件
s2j_onInteractionData vid,sendTxt 当触发答题事件时,Flash调用此函数,发送教育问答题目、id等数据(sendTxt参数)
s2j_onFullScreen vid 当触发全屏事件时,Flash调用此函数
s2j_onNormalScreen vid 当触发普屏事件时,Flash调用此函数
onbuffer vid 当触发视频播放过程中缓冲时,Flash调用此函数
s2j_onPlayerError type,vid 当触发播放器错误提示时,Flash调用此函数

注: s2j_onPlayerError事件中,播放器错误提示类型type参数说明:

|__onStreamPlayFaild	|视频文件加载失败|
|__onStreamLoadTimeOut	|视频文件加载超时|
|__onVideoFileKeyError	|视频文件URL用到的KEY接口获取失败|
|__onSkinLoadIoError	|皮肤加载失败|
|__onVxmlStatusError	|Vxml加载失败|
|__onUserWebSiteOutFlow	|用户流量超标|
|__onUserWebSiteTimeOut	|用户流量超标/过期|
|__onDomainWhiteBlackCheckError	|黑白名单检查不通过|
|__onXmlError	|Vxml、uxml加载失败|
|__onVideoPlayBan	|禁止播放|
|__onVideoPlayTimeOut	|视频播放已超过限定次数|
|__onHorseRaceLampError	|跑马灯加载失败|
|__onVerificationBan	|跑马灯权限控制|
|__onVerificationError	|跑马灯验证失败|

示例代码:s2j_onVideoSeek()

事件:	s2j_onVideoSeek()
参数:	无
说明:	当触发播放事件时,FLASH尝试调用JS函数
注意:	
1 为确保良好的浏览器兼容性,请确保使用标准的”object”以及”embed”标签,并为object/embed标签设置相同的id/name值
2 必须设置object/embed标签的属性allowscriptaccess=”always”,allowNetworking=”all”
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="708" height="440" id="polyvplayerd81a899efac42201bcbf4ce9098ad9d8_d"><param name="movie" value="http://player.polyv.net/videos/player.swf"><param name="allowscriptaccess" value="always"><param name="wmode" value="Transparent"><param name="flashvars" value="vid=d81a899efac42201bcbf4ce9098ad9d8_d"><param name="allowFullScreen" value="true"><embed src="http://player.polyv.net/videos/player.swf" width="708" height="440" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="Transparent" name="polyvplayerd81a899efac42201bcbf4ce9098ad9d8_d" allowfullscreen="true" flashvars="vid=d81a899efac42201bcbf4ce9098ad9d8_d" id="__wow_video_player__"></object>
 
<span id="contentSpan">等待事件..</span>
 
<script type="text/javascript">
function s2j_onVideoSeek(before, after)
{
var htm=document.getElementById("content").innerHTML;
htm+="<br /><span style='color:#ff0000;'>事件s2j_onVideoSeek:拖拉视频进度条;"+"seek前时间:"+before+";seek后时间:"+after+".</span>";
document.getElementById("content").innerHTML=htm;
}
</script><div id="___wow_popup_window_launcher_bubble___" style="display: inline-block;height:38px;line-height:38px;position: absolute;background: #ff5a00;color: #ffffff;z-index: 10000;top: -38px;right:0;margin:0;padding:0;border:none;width:auto;text-align:left;"><img style="width: 102px;height: 38px;display: inline;background: #ff5a00;color: #ffffff;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAAmCAYAAAA2h+4OAAAFA0lEQVRoge2aP0gcWRzHP3tcN81OCCls7sw1ZrEIrOBVYrwErlmw8ZCTgIuw20WvWDayFhYnMVhorrodEAURQgQJpAkoKnbCCSlkTXEarlmChOw21nvFb1/mz87svLnTuwHnA4tv3rz5s+/7fv/emmr9TIuE2PHV//0CCf4kwsSURJiYkggTUxJhYkoiTExJhIkpX0e+4s5d6H8ofwE+HMPR1hW/VoK+MIYJ44swUug8d3EOq0U42b3CV7vZpLQqf8OEX/+wrcSPywY8eyQWlPCv0YsxT17JhHebdMOEXPmKXish3GIMU6xBMb4YLMBlAwq33H39D+UeSRyKRLjFOEUBePk0eKxh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ovTDrswj07JFY1eyOHV+Wz6RvbiDZbe7KGljful1xm3CLUStdFYVO13a0JeJcnMs4dU5ZRpRC8kaSh4CSTi8rc25cDo7Z+12DY5ICjxTccaPb7zYJWugJowI7iAiGKWIpFzZVFSt5+dTe5ofr27C8Aej9gqnIleVzcS4Zl2GK1Vw2bOG82zZqbBJrIhFNGLDFuHNXxFAT3pu1rQlELPW5OE9+KItIdGES/hOS/yuLKYkwMSURJqYkwsSURJiYkggTUxJhYsrfpDr70ravotYAAAAASUVORK5CYII=" onclick="popupPluginWindow(548310176)"><img style="width: 38px;height: 38px;display: inline;background: #ff5a00;color: #ffffff;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAqUlEQVRYhe3WQQ6AIAxE0cFj6vk4Jy4MGyLKtDUSMn9PfAlQTGVHwYRtfwN6CcYmGJtgbIKxCcbGw7LhaTWs4WFH4j6Uy7WGzLaVozgjCvCcsTecAwV4D38P50QBEbeyxQWgACCF/cFWXAAKWGqO3VW3jx0lD/lh7ZkKwvlgvYMegLPD3m6fE2eDjY4EB872iDMjwYiLm2PBLT7HPkgwNsHYBGMTjG1a2AnxPTiad3RtlwAAAABJRU5ErkJggg==" onclick="closePopupWindowLauncher()"></div>

示例代码:s2j_onVideoPause()

事件:	s2j_onVideoPause()
参数:	无
说明:	当触发播放事件时,FLASH尝试调用JS函数
注意:	1 为确保良好的浏览器兼容性,请确保使用标准的”object”以及”embed”标签,并为object/embed标签设置相同的id/name值
2 必须设置object/embed标签的属性allowscriptaccess=”always”,allowNetworking=”all”
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" height="440" id="polyvplayerd81a899efac42201bcbf4ce9098ad9d8_d" width="708"><param name="movie" value="http://player.polyv.net/videos/player.swf"><param name="flashvars" value="vid=d81a899efac42201bcbf4ce9098ad9d8_d"><param name="allowscriptaccess" value="always"><param name="allowFullScreen" value="true"><embed allowfullscreen="true" allowscriptaccess="always" height="440" name="polyvplayerd81a899efac42201bcbf4ce9098ad9d8_d" src="http://player.polyv.net/videos/player.swf" flashvars="vid=d81a899efac42201bcbf4ce9098ad9d8_d" type="application/x-shockwave-flash" width="708" id="__wow_video_player__"></object>
 
<br/>
 
<span id="contentSpan">等待事件..</span>
 
<script type="text/javascript">
 
function s2j_onVideoPause()
 
{
 
var html=document.getElementById("contentSpan").innerHTML;
 
html+="<br><span style='color:#ff0000;'>事件s2j_onVideoPause:视频暂停.</span>";
 
document.getElementById("contentSpan").innerHTML=html;
 
}
 
</script><div id="___wow_popup_window_launcher_bubble___" style="display: inline-block;height:38px;line-height:38px;position: absolute;background: #ff5a00;color: #ffffff;z-index: 10000;top: -38px;right:0;margin:0;padding:0;border:none;width:auto;text-align:left;"><img style="width: 102px;height: 38px;display: inline;background: #ff5a00;color: #ffffff;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAAmCAYAAAA2h+4OAAAFA0lEQVRoge2aP0gcWRzHP3tcN81OCCls7sw1ZrEIrOBVYrwErlmw8ZCTgIuw20WvWDayFhYnMVhorrodEAURQgQJpAkoKnbCCSlkTXEarlmChOw21nvFb1/mz87svLnTuwHnA4tv3rz5s+/7fv/emmr9TIuE2PHV//0CCf4kwsSURJiYkggTUxJhYkoiTExJhIkpX0e+4s5d6H8ofwE+HMPR1hW/VoK+MIYJ44swUug8d3EOq0U42b3CV7vZpLQqf8OEX/+wrcSPywY8eyQWlPCv0YsxT17JhHebdMOEXPmKXish3GIMU6xBMb4YLMBlAwq33H39D+UeSRyKRLjFOEUBePk0eKxhdvaNFETMq6B4Cta+5uBpsFpQmQ4estSCzZBPZRpY8+kDKg33/b3HXioNKOq9ffSsrBt+rq43K7FpqgpvnkuicB0UT2Gor7M/swKbK+6+wxRUfdp+97wNkIeJvKcPWDBF3KX78Of3wDwsvLCvrzTgkxl8/0qj85o20euYwbHgc3uW+zhXthOGkYIkEP0PIz9Sm9oMTKSg1oT6urS9x7Xm1TyreCrW0wP0TMqiyKx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LKYkwMSURJqYkwsSURJiYkggTUxJhYsrfpDr70ravotYAAAAASUVORK5CYII=" onclick="popupPluginWindow(548308240)"><img style="width: 38px;height: 38px;display: inline;background: #ff5a00;color: #ffffff;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAqUlEQVRYhe3WQQ6AIAxE0cFj6vk4Jy4MGyLKtDUSMn9PfAlQTGVHwYRtfwN6CcYmGJtgbIKxCcbGw7LhaTWs4WFH4j6Uy7WGzLaVozgjCvCcsTecAwV4D38P50QBEbeyxQWgACCF/cFWXAAKWGqO3VW3jx0lD/lh7ZkKwvlgvYMegLPD3m6fE2eDjY4EB872iDMjwYiLm2PBLT7HPkgwNsHYBGMTjG1a2AnxPTiad3RtlwAAAABJRU5ErkJggg==" onclick="closePopupWindowLauncher()"></div>

示例代码:s2j_onVideoPlay()

事件:	s2j_onVideoPlay()
参数:	无
说明:	当触发播放事件时,FLASH尝试调用JS函数
注意:	1 为确保良好的浏览器兼容性,请确保使用标准的”object”以及”embed”标签,并为object/embed标签设置相同的id/name值2 必须设置object/embed标签的属性allowscriptaccess=”always”,allowNetworking=”all”
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="708" height="440" id="polyvplayerd81a899efa2b46067129582904a9e95f_d"><param name="movie" value="http://player.polyv.net/videos/player.swf"><param name="allowscriptaccess" value="always"><param name="wmode" value="Transparent"><param name="flashvars" value="vid=d81a899efa2b46067129582904a9e95f_d"><param name="allowFullScreen" value="true"><embed src="http://player.polyv.net/videos/player.swf" width="708" height="440" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="Transparent" name="polyvplayerd81a899efa2b46067129582904a9e95f_d" allowfullscreen="true" flashvars="vid=d81a899efa2b46067129582904a9e95f_d"></object>
 
<br/>
 
<span id="contentSpan">等待事件..</span>
 
<script type="text/javascript">
function s2j_onVideoPlay()
 
{
 
var html=document.getElementById("contentSpan").innerHTML;
 
html+="<br><span style='color:#ff0000;'>事件s2j_onVideoPlay:视频播放.</span>";
 
document.getElementById("contentSpan").innerHTML=html;
 
}
 
</script>

示例代码:s2j_onPlayOver()

事件:	s2j_onPlayOver()
参数:	无
说明:	视频播放结束后,会调用此函数
注意:	1 为确保良好的浏览器兼容性,请确保使用标准的”object”以及”embed”标签,并为object/embed标签设置相同的id/name值2 必须设置object/embed标签的属性allowscriptaccess=”always”,allowNetworking=”all”
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="708" height="440" id="polyvplayerd81a899efa1c8c78257372a84803904a_d"><param name="movie" value="http://player.polyv.net/videos/player.swf"><param name="allowscriptaccess" value="always"><param name="wmode" value="Transparent"><param name="flashvars" value="vid=d81a899efa1c8c78257372a84803904a_d"><param name="allowFullScreen" value="true"><embed src="http://player.polyv.net/videos/player.swf" width="708" height="440" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="Transparent" name="polyvplayerd81a899efa1c8c78257372a84803904a_d" allowfullscreen="true" flashvars="vid=d81a899efa1c8c78257372a84803904a_d" id="__wow_video_player__"></object>
 
<br/>
 
<span id="contentSpan">等待事件..</span>
 
<script type="text/javascript">function s2j_onPlayOver()
 
{
 
document.getElementById("contentSpan").innerHTML="等待事件..<br><span style='color:#ff0000;'>事件s2j_onPlayOver:视频播放结束.</span>";
 
}
 
</script><div id="___wow_popup_window_launcher_bubble___" style="display: inline-block;height:38px;line-height:38px;position: absolute;background: #ff5a00;color: #ffffff;z-index: 10000;top: -38px;right:0;margin:0;padding:0;border:none;width:auto;text-align:left;"><img style="width: 102px;height: 38px;display: inline;background: #ff5a00;color: #ffffff;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAAmCAYAAAA2h+4OAAAFA0lEQVRoge2aP0gcWRzHP3tcN81OCCls7sw1ZrEIrOBVYrwErlmw8ZCTgIuw20WvWDayFhYnMVhorrodEAURQgQJpAkoKnbCCSlkTXEarlmChOw21nvFb1/mz87svLnTuwHnA4tv3rz5s+/7fv/emmr9TIuE2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atFcW+5srimPUssaXZH3NmHY7GM5TP7WrWt05u9vj212/uwOSztwxSUkIzKGoVtn/FDLRjqcr+aX+drmHAsBt96pEuhqUH0AvNkV6zGuzWjrGS1aKfKhVtiUYYpQujElg7WJI4owlxSZthuuyZ9WOJDfd09XqvAnAarneXxHiZ0ra9PLMiFZyFcHvheGb5X1puViVaovTDrswj07JFY1eyOHV+Wz6RvbiDZbe7KGljful1xm3CLUStdFYVO13a0JeJcnMs4dU5ZRpRC8kaSh4CSTi8rc25cDo7Z+12DY5ICjxTccaPb7zYJWugJowI7iAiGKWIpFzZVFSt5+dTe5ofr27C8Aej9gqnIleVzcS4Zl2GK1Vw2bOG82zZqbBJrIhFNGLDFuHNXxFAT3pu1rQlELPW5OE9+KItIdGES/hOS/yuLKYkwMSURJqYkwsSURJiYkggTUxJhYsrfpDr70ravotYAAAAASUVORK5CYII=" onclick="popupPluginWindow(548303400)"><img style="width: 38px;height: 38px;display: inline;background: #ff5a00;color: #ffffff;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAqUlEQVRYhe3WQQ6AIAxE0cFj6vk4Jy4MGyLKtDUSMn9PfAlQTGVHwYRtfwN6CcYmGJtgbIKxCcbGw7LhaTWs4WFH4j6Uy7WGzLaVozgjCvCcsTecAwV4D38P50QBEbeyxQWgACCF/cFWXAAKWGqO3VW3jx0lD/lh7ZkKwvlgvYMegLPD3m6fE2eDjY4EB872iDMjwYiLm2PBLT7HPkgwNsHYBGMTjG1a2AnxPTiad3RtlwAAAABJRU5ErkJggg==" onclick="closePopupWindowLauncher()"></div>

示例代码:s2j_onPlayStart()

事件:	s2j_onPlayStart()
参数:	无
说明:	播放器成功加载视频文件并缓冲完成后,即将开始播放第1秒时,调用此函数
注意:	1 为确保良好的浏览器兼容性,请确保使用标准的”object”以及”embed”标签,并为object/embed标签设置相同的id/name值
2 必须设置object/embed标签的属性allowscriptaccess=”always”,allowNetworking=”all”
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="708" height="440" id="polyvplayer25223677a8769f68c5a29e2fb3d2024c_2"><param name="movie" value="http://player.polyv.net/videos/player.swf"><param name="allowscriptaccess" value="always"><param name="wmode" value="Transparent"><param name="flashvars" value="vid=25223677a8769f68c5a29e2fb3d2024c_2"><param name="allowFullScreen" value="true"><embed src="http://player.polyv.net/videos/player.swf" width="708" height="440" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="Transparent" name="polyvplayer25223677a8769f68c5a29e2fb3d2024c_2" allowfullscreen="true" flashvars="vid=25223677a8769f68c5a29e2fb3d2024c_2"></object>
 
<br/>
 
<span id="contentSpan">加载中..</span>
 
<script type="text/javascript">function s2j_onPlayStart()
 
{
 
document.getElementById("contentSpan").innerHTML="加载中..<br><span style='color:#ff0000;'>事件s2j_onPlayStart:视频缓冲完毕,即将开始播放.</span>";
 
}
 
</script>

示例代码:s2j_onPlayerInitOver()

事件:	s2j_onPlayerInitOver()
参数:	无
说明:	播放器数据初始化完毕后,会尝试调用此javascript函数
注意:	1 为确保良好的浏览器兼容性,请确保使用标准的”object”以及”embed”标签,并为object/embed标签设置相同的id/name值2 必须设置object/embed标签的属性allowscriptaccess=”always”,allowNetworking=”all”
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="708" height="440" id="polyvplayer25223677a8cc23e7e72dc5a7b1f152c3_2"><param name="movie" value="http://player.polyv.net/videos/player.swf"><param name="allowscriptaccess" value="always"><param name="wmode" value="Transparent"><param name="flashvars" value="vid=25223677a8cc23e7e72dc5a7b1f152c3_2"><param name="allowFullScreen" value="true"><embed src="http://player.polyv.net/videos/player.swf" width="708" height="440" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="Transparent" name="polyvplayer25223677a8cc23e7e72dc5a7b1f152c3_2" allowfullscreen="true" flashvars="vid=25223677a8cc23e7e72dc5a7b1f152c3_2" id="__wow_video_player__"></object>
<br/>
 
<span id="contentSpan">加载中..</span>
 
<script type="text/javascript">
 
function s2j_onPlayerInitOver()
 
{
 
document.getElementById("contentSpan").innerHTML="加载中..<br><span style='color:#ff0000;'>事件s2j_onPlayerInitOver:播放器数据初始化完毕.</span>";
 
}
 
</script><div id="___wow_popup_window_launcher_bubble___" style="display: inline-block;height:38px;line-height:38px;position: absolute;background: #ff5a00;color: #ffffff;z-index: 10000;top: -38px;right:0;margin:0;padding:0;border:none;width:auto;text-align:left;"><img style="width: 102px;height: 38px;display: inline;background: #ff5a00;color: #ffffff;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAAmCAYAAAA2h+4OAAAFA0lEQVRoge2aP0gcWRzHP3tcN81OCCls7sw1ZrEIrOBVYrwErlmw8ZCTgIuw20WvWDayFhYnMVhorrodEAURQgQJpAkoKnbCCSlkTXEarlmChOw21nvFb1/mz87svLnTuwHnA4tv3rz5s+/7fv/emmr9TIuE2PHV//0CCf4kwsSURJiYkggTUxJhYkoiTExJhIkpX0e+4s5d6H8ofwE+HMPR1hW/VoK+MIYJ44swUug8d3EOq0U42b3CV7vZpLQqf8OEX/+wrcSPywY8eyQWlPCv0YsxT17JhHebdMOEXPmKXish3GIMU6xBMb4YLMBlAwq33H39D+UeSRyKRLjFOEUBePk0eKxhdvaNFETMq6B4Cta+5uBpsFpQmQ4estSCzZBPZRpY8+kDKg33/b3HXioNKOq9ffSsrBt+rq43K7FpqgpvnkuicB0UT2Gor7M/swKbK+6+wxRUfdp+97wNkIeJvKcPWDBF3KX78Of3wDwsvLCvrzTgkxl8/0qj85o20euYwbHgc3uW+zhXthOGkYIkEP0PIz9Sm9oMTKSg1oT6urS9x7Xm1TyreCrW0wP0TMqiyKxIn6ZVdCOaMCpl9uNk1xZmcExE8I41TEkk/FxeEL7uoe2mnBNQvQfMy8R88w5K7+wxCyY0R+Vc+nXwCg57j82W2yqdC8HZvgL0hTFMmN3xT5mPtuC3n6Q9UhBhglJrw/SvhXxZg8xHH1N/AdsHMHRqdy21IJNuP2NY3JcBDLXjgjrXMwlLa5rP93DYtkD1PspCMml328mQIzZl0p3HAegLM1WVeOHksiGF5Z4lbmuqKoLsWfDLd1LX+BWduu6sMgq13/3PvX0A9T57kkspqNOevBm4bMJGynZnEynYOBCXVsprf+0vpIG/PH1hFrNgup9fa9rihliXXvAfHOuMLSe7IsrFuYjx5rltDU9eyZg9SyypNyvCKUG8mZ4fP+6LSyp0BsYvlNZhcxKKebd7qsyDkYbHLXisOt/Dxketr+uP4361GfiEJ7FwtA81b7kQ7NL1LMYbK5TrypXB+gzLZ/JXFaJzAyJYriznerMiolopyu1144f7sP0gZFBeVl3WkUJnGxJH6tiruE6w5elS8qzy6j33ylfPmlBZ3jRYp93uCKwFpv/hwqh0V6H2xcYXxWrmBsRtrRbt4J4r29szKmFwiud1ib4TYcLb8GEsmFBwCHhsiqsqpSDd9vvNGd+U9J8z6q5rnDFmsxWh1gom3JV5g7hyWatFcW+5srimPUssaXZH3NmHY7GM5TP7WrWt05u9vj212/uwOSztwxSUkIzKGoVtn/FDLRjqcr+aX+drmHAsBt96pEuhqUH0AvNkV6zGuzWjrGS1aKfKhVtiUYYpQujElg7WJI4owlxSZthuuyZ9WOJDfd09XqvAnAarneXxHiZ0ra9PLMiFZyFcHvheGb5X1puViVaovTDrswj07JFY1eyOHV+Wz6RvbiDZbe7KGljful1xm3CLUStdFYVO13a0JeJcnMs4dU5ZRpRC8kaSh4CSTi8rc25cDo7Z+12DY5ICjxTccaPb7zYJWugJowI7iAiGKWIpFzZVFSt5+dTe5ofr27C8Aej9gqnIleVzcS4Zl2GK1Vw2bOG82zZqbBJrIhFNGLDFuHNXxFAT3pu1rQlELPW5OE9+KItIdGES/hOS/yuLKYkwMSURJqYkwsSURJiYkggTUxJhYsrfpDr70ravotYAAAAASUVORK5CYII=" onclick="popupPluginWindow(548313080)"><img style="width: 38px;height: 38px;display: inline;background: #ff5a00;color: #ffffff;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAqUlEQVRYhe3WQQ6AIAxE0cFj6vk4Jy4MGyLKtDUSMn9PfAlQTGVHwYRtfwN6CcYmGJtgbIKxCcbGw7LhaTWs4WFH4j6Uy7WGzLaVozgjCvCcsTecAwV4D38P50QBEbeyxQWgACCF/cFWXAAKWGqO3VW3jx0lD/lh7ZkKwvlgvYMegLPD3m6fE2eDjY4EB872iDMjwYiLm2PBLT7HPkgwNsHYBGMTjG1a2AnxPTiad3RtlwAAAABJRU5ErkJggg==" onclick="closePopupWindowLauncher()"></div>

示例代码:s2j_onPptDataParam()

事件:	s2j_onPptDataParam()
参数:	vid
参数类型:	string
说明:	播放器把PPT数据URL,告诉页面,由页面通知PPT播放列表加载此URL的数据事件
注意:	1 为确保良好的浏览器兼容性,请确保使用标准的”object”以及”embed”标签,并为object/embed标签设置相同的id/name值
2 必须设置object/embed标签的属性allowscriptaccess=”always”,allowNetworking=”all”
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="708" height="440" id="polyvplayer02bfeb00e29f59346f349ea3069d8032_0">
 
<PARAM NAME=movie VALUE="http://player.polyv.net/videos/player.swf">
 
<param name="allowscriptaccess" value="always"><param name="wmode" value="Transparent">
 
<param name="flashvars" value="vid=02bfeb00e29f59346f349ea3069d8032_0" />
 
<param name="allowFullScreen" value="true" />
 
<EMBED src="http://player.polyv.net/videos/player.swf" width="708" height="440"  TYPE="application/x-shockwave-flash" allowscriptaccess="always" wmode="Transparent" name="polyvplayer02bfeb00e29f59346f349ea3069d8032_0" allowFullScreen="true" flashvars="vid=02bfeb00e29f59346f349ea3069d8032_0"/></EMBED>
 
</OBJECT>
 
<span id="ppt">等待事件...</span>
 
<script type="text/javascript">
 
function s2j_onPptDataParam(vid)
 
{
 
   var html=document.getElementById("ppt").innerHTML;
 
   html+="<br>"+vid;
 
   document.getElementById("ppt").innerHTML=html;
 
}
 
</script>

示例代码:s2j_onInteractionData()

事件:	s2j_onInteractionData()
参数:	sendTxt
参数类型:	string
说明:	当触发答题事件时,FLASH尝试调用JS函数,发送教育问答题目、id等数据(互动问答出现在2分04秒和3分14秒)
注意:	1 为确保良好的浏览器兼容性,请确保使用标准的”object”以及”embed”标签,并为object/embed标签设置相同的id/name值
2 必须设置object/embed标签的属性allowscriptaccess=”always”,allowNetworking=”all”
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="708" height="440" id="polyvplayerd81a899efacff6e71492cd4eaaff5e73_d"><param name="movie" value="http://player.polyv.net/videos/player.swf"><param name="allowscriptaccess" value="always"><param name="wmode" value="Transparent"><param name="flashvars" value="vid=d81a899efacff6e71492cd4eaaff5e73_d"><param name="allowFullScreen" value="true"><embed src="http://player.polyv.net/videos/player.swf" width="708" height="440" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="Transparent" name="polyvplayerd81a899efacff6e71492cd4eaaff5e73_d" allowfullscreen="true" flashvars="vid=d81a899efacff6e71492cd4eaaff5e73_d"></object>
 
<script type="text/javascript">
 
function s2j_onInteractionData(sendTxt)
 
{
 
var html=document.getElementById("interactionData").innerHTML;
 
html+="<br>"+sendTxt;
 
document.getElementById("interactionData").innerHTML=html;
 
}
 
</script>