主题 : 多媒体上传问题? |
级别: 秀才
|
3# 发表于:2017-09-21 09:22:07 IP:36.183.*.*
回复第2楼
我上传成功,整个新闻也添加成功,那我在查看的时候没有显示我刚刚上传的视频呀, 那我页面怎么看呢? |
||
---|---|---|---|
级别: 版主
|
4# 发表于:2017-09-21 09:24:02 IP:106.166.*.*
[#if content.mediaPath?? && content.mediaType??]
<div class="video-con clearfix"> [#if content.mediaType=='FLV'] <object height="500" width="100%" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="movie" value="/${res}/img/flvplayer.swf" /> <param name="quality" value="high" /> <param name="allowFullScreen" value="true" /> <param name="FlashVars" value="vcastr_file=${content.mediaPath!}&BufferTime=3" /><embed height="500" width="100%" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" flashvars="vcastr_file=${content.mediaPath!}" allowfullscreen="true" src="/${res}/img/flvplayer.swf"></embed> </object> [#elseif content.mediaType=='FLASH'] <embed height="500" width="100%" 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:100%;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','100%','500',flashvars,params); var box = new LightBox(); function closelights(){//关灯 box.Show(); } function openlights(){//开灯 box.Close(); } </script> [#else] <embed height="500" width="100%" type="video/x-ms-wmv" src="${content.mediaPath}" console="cons" controls="ImageWindow" autostart="true"></embed> [/#if] [/#if] 页面你要写播放插件才能看 |
||
---|---|---|---|
级别: 秀才
|
5# 发表于:2017-09-21 09:38:38 IP:36.183.*.*
回复第4楼
这个我要加在【生成静态页面的模板页面里吗】还是放在那里? |
||
---|---|---|---|