<!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=utf-8" />
<title>demo演示文档</title>
<script language="javascript" type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.qvod.js"></script>
</head>
<body>
<br>
<div id="player" style="width:700px; height:500px;">
</div>
<script>
$(function(){
//页面加载自动打开播放器
var url = "qvod://69999035|DBE1429630008370A3F01A38FC0C741ED648E9C0|香格里拉01.rmvb|";
//下一集资源地址
var nextqvod = "qvod://530121830|7A77E443E9FB1E119E1BC24FB5389DB7572555D5|sohu_B+侦探(1).mp4|";
//下一集播放页面 播放结束自动跳转到该页面
var nextpage = "http://localhost/jquery/demo2.html";
//调用播放器
$("#player").qvod({PlayerArea:"player", width:"700", height:"500", AutoPlay:"true",QvodUrl:url,NextWebPage:nextpage, NextQvod:nextqvod});
/*参数说明*/
//width: "500", /*播放器的宽度*/
//height: "400", /*播发器的高度*/
//AutoPlay: "true", /*自动播放 默认开启*/
//FullScreen: "false", /*自动全屏 默认关闭*/
//PlayerArea: "", /*播放器插入的位置,标签的id属性*/
//QvodUrl: "", /*本集资源地址*/
//NextWebPage: "", /*下一集播放页地址*/
//NextQvod: "", /*下一集资源地址,预缓冲时使用*/
//ShowControl: "1", /*是否显示控制栏,0=不显示 1= 显示 默认参数是显示*/
//AdUrl: "http://buffer-ad.qvod.com/" /*缓冲广告 注:3.0.0.58及将来发布的客户端版本才支持*/
//该插件,能自动根据用户观看影片上一集是否全屏,设置自动跳转之后下一集的全屏状态。
});
</script>
</body>
</html>
评论0
最新资源