欢迎光临缤纷软件站,本站所有软件保证无广告,无病毒。
kesioncms
您当前位置:缤纷软件站 >> 影视系统 >> 浏览文章

宝丽通播放器模版

2011/9/22 23:20:05本站原创 【字体:

此模版仅使用于宝丽通播放器(请自行搜索下载),经测试,宝丽通播放器在局域网播放IIS视频资源时非常流畅。

<html xmlns="http:www.w3.org/1999/xhtml">
<head>
    <title>正在播放 {film.Name} - {config.webtitle}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="templates/{templatepath}/bfvod.css" type="text/css" />
    <!--下三行禁用浏览器缓存-->
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />

    <script type="text/javascript" src="templates/{templatepath}/js/bfvod.js"></script>

    <script type="text/javascript" src="templates/{templatepath}/js/playerfun.js"></script>

    <script type="text/javascript">
    //播放器检测
        function ocxstatus()
        {
            var NewObj;
            try
            {
                NewObj = new ActiveXObject("VodHelper.NetPlayer");
                if (typeof NewObj != 'undefined')
                {
                    NewObj = null;
                    return true;
                }
            }
            catch (e)
            {
                NewObj = null;
                return false;
            }
        }
    </script>

    <style type="text/css">
        html, body, form { height: 100%; width: 100%; }
        body { background: #fff; }
        #PlayerWindow { width: 100%; height: auto; padding-bottom: 2px; }
        #controlbar { height: auto; clear: both; }
        #statusBar { clear: both; height: auto; }
        #nav { padding: 3px 5px; height: auto; clear: both; }
        #nav input { width: 80px; }
        #nav .left { float: left; }
        #nav .right { float: right; margin-top: 8px; }
    </style>
</head>
<body onload="SetPlaywindowSize()" onresize="SetPlaywindowSize()" onkeydown="KeyDown()"
     onbeforeunload="loading()">
<!--oncontextmenu="event.returnValue=false"-->
    <script type="text/javascript">
    if (!ocxstatus()) {
        alert("您没有安装宝丽通播放器!请先下载安装宝丽通播放器。");
        //window.open("http://下载地址", '_self'); //下载软件的页面
        //return ;

    }
    </script>

    <div id="clipwindow">
        <!--宝丽通播放器,适用于http播放方式,无缓冲-->
        <div id="PlayerWindow" style="height: 460px;">
            <object id="bltplayer" name="player" classid="CLSID:C3D8F2C7-A508-4724-BC3A-C247058D17EB"
                width="100%" height="100%">
                <param name="url" value="{playurl}" />
                <!--这里是播放地址-->
                <param name="uimode" value="1" />
                <param name="playmode" value="1" />
                <param name="autostart" value="1" />
                <param name="playinplayer" value="0" />
            </object>
        </div>
    </div>
    <div id="nav">
        <div class="left">
            <input type="button" value="上一集" onclick="playchange({filmID},{preFileID})" <%if preFileID == 0%>disabled="true"
                <%/if%> />
             <select style="width:80px;" onchange="playchange({filmID},this.value)">
                <%loop (FilmPlayUrlInfo) detail GetFilmPlayUrlList()%>
                <option  value="{detail.ID}" <%if fileID == {detail.ID} %> selected="selected" <%/if%>>
                    {detail.ShowText}</option>
                <%/loop%>
            </select>
             <input id="btnnext" type="button" value="下一集" onclick="playchange({filmID},{nextFileID})"
                <%if nextFileID == 0%>disabled="true" <%/if%> />

            <script language="javascript" for="bltplayer" event="PlayStateChange(newState)">
                if(newState == 8)
                {
                    if(document.getElementById("btnnext").disabled == false)
                    playchange({filmID},{nextFileID});
                }
            </script>

        </div>
        <div class="right">
            如果发现该影片无法播放可<span style="cursor: pointer; color: #0287CA" onclick="javascript:window.location.reload();">刷新</span>看看,如果仍不行请点<span
                style="cursor: pointer; color: #0287CA" onclick="javascript:errorReport({filmID});">这里</span>报告错误。</div>
    </div>
    <%csharp%>
    UpdateClick(1);//更新点击数,每次增1
    <%/csharp%>
</body>
</html>

将以上代码覆盖templates/default/player.htm文件,然后在后台管理中重新生成此模版。

 



网友评论:

每日推荐
视觉焦点
  • 阅读排行
  • 本日
  • 本周
  • 本月
关于我们 | 版权声明 | 会员登陆 | 友情链接 | 网站地图 | 订阅RSS |