主题 : jeecms 怎么在网页中播放视频 |
级别: 童生
![]() |
1# 发表于:2015-07-11 14:58:31 IP:58.82.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
![]() |
3# 发表于:2015-07-11 15:03:35 IP:58.82.*.*
我不想单独开一个视频栏目,想在新闻页里面加一个视频 (就是新闻里添加了多媒体) ,能 播放吗? 要怎么在网页读取 呢?
![]() |
||
---|---|---|---|
级别: 版主
![]() |
6# 发表于:2015-07-11 15:33:29 IP:182.12.*.*
<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 id="a1"></div></div> <script type="text/javascript"> //函数名称不允许更改 function ckmarqueeadv(){return '广告内容'}; var flashvars={f:'${content.mediaPath!}',c:0,b:1,my_url:'${content.url!}',my_pic:'${content.typeImg!}'}; var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always'}; CKobject.embedSWF('${resSys}/ckplayer/ckplayer.swf','a1','ckplayer_a1','980','500',flashvars,params); 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> 这个是播放代码,加到新闻栏目的模板下就可以了 |
||
---|---|---|---|