怎么把CNTV的视频转帖到济溪论坛。
CCTV视频没有直接供论坛转发的swf连接,只有视频所在网页地址和HTML形式的转发代码,由于绝大部分论坛不会开放HTML代码,所以,要想直接在论坛中直接转发CCTV的视频就有些困难了,经过本人研究,我们只需稍微做一下修改,就完全可以直接用论坛中的[视频]标签转发CCTV的视频。我们以这个视频为例:http://tansuo.cntv.cn/history/lusekongjian/classpage/video/20100111/101752.shtml
一,点击分享,复制代码
二,在弹出的对话框中选择“复制外嵌代码”
三,得到外嵌代码如下
<div id='forApple'><embed id='v_player_cctv' width='927' height='551' flashvars='videoId=20100111101752&filePath=/history/lusekongjian/classpage/video/&isAutoPlay=true&url=http://tansuo.cntv.cn/history/lusekongjian/classpage/video/20100111/101752.shtml&tai=kejiao&configPath=http://kejiao.cntv.cn/nettv/Library/discovery/player/config.xml&widgetsConfig=http://kejiao.cntv.cn/nettv/Library/discovery/player/widgetsConfig.xml&languageConfig=http://kejiao.cntv.cn/nettv/Library/discovery/player/zh_cn.xml&hour24DataURL=&outsideChannelId=channelBugu&videoCenterId=73f18c6e5ebb4dd78fa2aeb26251a76e' allowscriptaccess='always' allowfullscreen='true' menu='false' quality='best' bgcolor='#000000' name='v_player_cctv' src='http://player.cntv.cn/standard/cntvOutSidePlayer.swf?v=0.171.5.8.8.7' type='application/x-shockwave-flash' lk_mediaid='lk_juiceapp_mediaPopup_1257416656250' lk_media='yes'/><script language="javascript" src="http://js.player.cntv.cn/creator/swfobject.js" ></script><script language="javascript" src="http://js.player.cntv.cn/creator/forApple.js" ></script><script>createApplePlayer("flashPlayer",927,551,"73f18c6e5ebb4dd78fa2aeb26251a76e");</script></div>
四,将其中的两段代码(我标红了的)进行合并,第二段代码放在前面,第一段放在后面,两段之间用&号连接(注意我下面的前后标点符号)
第一段
videoId=20100111101752&filePath=/history/lusekongjian/classpage/video/&isAutoPlay=true&url=http://tansuo.cntv.cn/history/lusekongjian/classpage/video/20100111/101752.shtml&tai=kejiao&configPath=http://kejiao.cntv.cn/nettv/Library/discovery/player/config.xml&widgetsConfig=http://kejiao.cntv.cn/nettv/Library/discovery/player/widgetsConfig.xml&languageConfig=http://kejiao.cntv.cn/nettv/Library/discovery/player/zh_cn.xml&hour24DataURL=&outsideChannelId=channelBugu&videoCenterId=73f18c6e5ebb4dd78fa2aeb26251a76e
第二段(请忽略蓝色链接)
http://player.cntv.cn/standard/cntvOutSidePlayer.swf?v=0.171.5.8.8.7
五,得到结果如下
http://player.cntv.cn/standard/cntvOutSidePlayer.swf?v=0.171.5.8.8.7&videoId=20100111101752&filePath=/history/lusekongjian/classpage/video/&isAutoPlay=true&url=http://tansuo.cntv.cn/history/lusekongjian/classpage/video/20100111/101752.shtml&tai=kejiao&configPath=http://kejiao.cntv.cn/nettv/Library/discovery/player/config.xml&widgetsConfig=http://kejiao.cntv.cn/nettv/Library/discovery/player/widgetsConfig.xml&languageConfig=http://kejiao.cntv.cn/nettv/Library/discovery/player/zh_cn.xml&hour24DataURL=&outsideChannelId=channelBugu&videoCenterId=73f18c6e5ebb4dd78fa2aeb26251a76e
六,别忘了自动展开和调整大小到720,600哟!
七,具体实例结果链接
http://forum.gsean.org/read.php?tid=81655&ds=1&page=1&toread=1#tpc
八,另外我发现了,其实这个&和&,两个大小不同的&,最后人家系统是只认一个&的。
具体是哪一个&呢?
是一个小一点的&!!!
就是&&&&&&&&&&&&&&&&&&&&&&&。
不是&&&&&&&&&&&&&&&&。
大家小心。下次再会。 对于这个,值得分享一下哦 代码上面都是英文符号 这个非常有用,大家发视频的时候记得看看。
页:
[1]