主题 : ckplayer视频播放器整合jeecms播放mp4、FLV格式,通过测试
级别: 举人
UID: 65802
积分:142 加为好友
威望: 8 精华: 0
主题:9 回复:99
注册时间:2014-08-15
在线时长:0.61
1#   发表于:2015-10-09 20:59:13  IP:223.75.*.*
<!DOCTYPE HTML>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<title>${title} - ${site.name} - Powered by JEECMS</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="${content.tagStr!}" http-equiv="keywords" />
<meta content="${content.description!}" http-equiv="description" />
<script src="${resSys}/html5.js" type="text/javascript"></script>
<link href="/${res}/css/index.css" rel="stylesheet" type="text/css"/>
<link href="/${res}/css/html5.css" rel="stylesheet" type="text/css"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<script src="/${res}/js/common.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
Cms.attachment("${base}","${content.id}","${content.attachments?size}","attach");
Cms.viewCount("${base}","${content.id}");
Cms.siteFlow("${base}", location.href, document.referrer);
});
</script>
<style type="text/css">
#a1 {
height: 480px;
width: 640px;
margin:auto;
}
</style>

</head>
<body>
<div class="container">
 [#include "../include/页头顶栏.html"/]
    <div class="banner_AD">
<script src="${base}/adspace.jspx?id=1" type="text/javascript"></script>
</div>
<div class="me">
<div class="topp">
   [#include "../include/navi.html"/] 
</div>  
</div>    
    <div class="website mt10">
        当前位置:<a href="${base}/">首页</a> > [#list channel.nodeList as n]<a target="_blank" href="${n.url}">${n.name}</a>[#if n_has_next] > [/#if][/#list] > 正文
    </div>
    <div class="clear"></div>
<div class="newsTex"> 
        <h1>[#if content.bold]<b>${content.title}</b>[#else]${content.title}[/#if]</h1> 
        <div class="msgbar">发布时间: ${content.releaseDate} &nbsp; 作者:${content.author!'本站编辑'} &nbsp; 来源: ${content.origin!'本站原创'} &nbsp; 浏览次数:<span id="views"></span> 
        [#if user??] 
        <script type="text/javascript"> 
        $(function() { 
        Cms.collectexist("${base}","${content.id}","cancelSpan","comfirmSpan"); 
        }); 
        </script> 
        [/#if] 
        </div> 
         </br></br></br>
    </div> 
     <div class="tvCon">
     <div id="a1">
      [#if content.mediaPath?? && content.mediaType??]   
         
               [#if content.mediaType=='FLV'] 
         <div id="video" style="position:relative;z-index: 100;width:960px;height:500px;float: left;"></div>
     <script type="text/javascript" src="/thirdparty/ckplayer/js/offlights.js"></script>
<script type="text/javascript" src="/thirdparty/ckplayer/ckplayer.js" charset="utf-8"></script>
                <script type="text/javascript">   
                    var flashvars={
                        f:'${content.mediaPath}',
                        c:0,
                        p:1,
                        loaded:'loadedHandler',
                        my_url:encodeURIComponent(window.location.href)
                    };
                    var video=['${content.mediaPath}->video/${content.mediaType}'];
                    CKobject.embed('/thirdparty/ckplayer/ckplayer.swf','a1','ckplayer_a1','640','480',false,flashvars,video);
                    var box = new LightBox();
                            function closelights(){//关灯
                                box.Show();
                            }
                            function openlights(){//开灯
                                box.Close();
                            }
                </script>

        [#elseif content.mediaType=='FLASH'] 
        <embed height="500" width="98%" type="application/x-shockwave-flash" quality="high" src="${content.mediaPath}" wmode="transparent" align="center"></embed>
        [#elseif content.mediaType=='CK']
            <!--ckplayer播放视频-->
            <div id="video" style="position:relative;z-index: 100;width:960px;height:500px;float: left;"></div>
     <script type="text/javascript" src="/thirdparty/ckplayer/js/offlights.js"></script>
<script type="text/javascript" src="/thirdparty/ckplayer/ckplayer.js" charset="utf-8"></script>
                <script type="text/javascript">   
                    var flashvars={
                        f:'${content.mediaPath}',
                        c:0,
                        p:1,
                        loaded:'loadedHandler',
                        my_url:encodeURIComponent(window.location.href)
                    };
                    var video=['${content.mediaPath}->video/mp4'];
                    CKobject.embed('/thirdparty/ckplayer/ckplayer.swf','a1','ckplayer_a1','640','480',false,flashvars,video);
                    var box = new LightBox();
                            function closelights(){//关灯
                                box.Show();
                            }
                            function openlights(){//开灯
                                box.Close();
                            }
                </script>

        [#else] 
        <embed height="500" width="98%" type="video/x-ms-wmv" src="${content.mediaPath}" console="cons" controls="ImageWindow" autostart="true"></embed>
        [/#if]

[/#if] 
</div>
     <div class="content mt10">${txt!}</div> 
     <div class="pagebar">[#include "../style_page/content.html"/]</div> 
</div>

    <div class="w700 mt10">
     <div class="rim06">
            <!--网友评论_Begin-->
            [#if channel.commentControl!=2]
            [#include "../content/inc_comment_input.html"/]
            [#include "../content/inc_comment_list.html"/]
            [/#if]
            <!--网友评论_End-->
        </div>
        <div class="clear"></div>
    </div>
    <div class="w270_tv">
     <div class="rim06 mt10">
         <div class="LanMu01-2">
                <div class="LanMu01-1"></div>
                <span>影片简介</span>
                <div class="LanMu01-3"></div>
            </div>
         <div class="tvxinxi">
                <ul>
                 <li><h1>${content.title!}</h1></li>
                 <li>制作单位:<span>${content.attr.Starring!}</span></li>
                 <li>撰稿:<span>${content.attr.Director!}</span></li>
                 <li>类型:<span>${content.attr.VideoType!}</span></li>
                 <li>简介:<span>${content.desc!}</span></li>
                </ul>
            </div>
        </div>
    </div>
    [#include "../include/friend_link.html"/]
    [#include "../include/footer.html"/]
</div>
</body>
</html>
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
2#   发表于:2015-10-10 08:27:07  IP:59.133.*.*
1
1 共1页