注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

花随梦影蝶纷飞

记住该记住的,忘记该忘记的,改变能改变的,接受不能改变的。

 
 
 

日志

 
 

CuPlayer网页播放  

2014-05-13 19:35:08|  分类: ★视频播放★ |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我的播放</title>
<script type="text/javascript" src="images/swfobject.js"></script>
<script language="JavaScript">
//=================亮灯=================
function getLight(pars){
if(pars=="open"){
close_light(this)
}else{
close_light(this)
}
}
//=================播放=================
function thisMovie(movieName){
if(navigator.appName.indexOf("Microsoft")!=-1){
return window[movieName]
}else{
return document[movieName]
}
}
//=================输出暂停时间信息=================
function getPause(pars){
var times = pars;
document.getElementById("pauseTime").innerHTML = " 输出暂停时间信息:"+times+" ";
}
//=================输出当前时间信息=================
function getTimes(pars){
var times = pars;
document.getElementById("time").innerHTML = "输出当前时间信息:"+times+" ";
}
//=================输出当前结束信息=================
function getEndtime(pars){
var times = pars;
document.getElementById("endTime").innerHTML = "输出当前结束信息:"+times+" ";
}
//=================输出当前暂停状态=================
function getPauseAct(pars){
var act = pars;
document.getElementById("action").innerHTML = "输出当前暂停状态:"+act+" ";
}
//=================JS调用注册=================
function postPlaytime(pars){
thisMovie("myPlayer").sendtxt2(""+pars+"");
}
//=================JS调用注册=================
function postAct(pars){
thisMovie("myPlayer").sendtxt(""+pars+"");
}
</script>
</head>

<body>
<div class="close_light_bg" id="close_light_bg"></div>

<span class="time" id="pauseTime">Loading...</span> </br>
<span class="time" id="time">Loading...</span> </br>
<span class="time" id="endTime">Loading...</span> </br>
<span class="time" id="action">Loading...</span> </br>

<div class="video" id="PlayerDiv"><b><img src="images/loading.gif" /> 网页视频播放器加载中,请稍后...</b></div>
<script type="text/javascript">
var so = new SWFObject("player.swf","myPlayer","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("JcScpVideoPath","001.mp4");
so.addVariable("JcScpImg","images/startpic.jpg");
//标题
so.addVariable("JcScpSharetitle","我的播放");
so.write("PlayerDiv");
</script>
<script language=javascript src="images/jquery.js" type=text/javascript></script>
<script language=javascript src="images/action.js" type=text/javascript></script>
<p>
<input type="submit" id="pause" name="pause" onClick="postAct('pause');" value="pause" class="btn"/>&nbsp;
<input type="submit" id="play" name="play" onClick="postAct('play');" value="play" class="btn"/>&nbsp;
<input type="submit" id="pause" name="pause" onClick="postAct('stop');" value="stop" class="btn"/>&nbsp;</p>
<p>
<input type="submit" id="pause" name="pause" onClick="postPlaytime('60');" value="指定点播放:第60秒" class="btn2"/>&nbsp;
<input type="submit" id="pause" name="pause" onClick="postPlaytime('125');" value="指定点播放:125秒" class="btn2"/>&nbsp;
<input type="submit" id="pause" name="pause" onClick="postPlaytime('208');" value="指定点播放:208秒" class="btn2"/>&nbsp;</p>

</body>
</html>


  评论这张
 
阅读(8)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017