论坛风格切换切换到宽版
  • 7973阅读
  • 5回复

[分享]论坛引用CNTV央视视频方法 [复制链接]

上一主题 下一主题
离线it民工
 

发帖
50
金币
3270
威望
146
股份
53
只看楼主 倒序阅读 使用道具 楼主  发表于: 2015-04-12
央视视频现在只能分享到各大社交媒体,也可以使用外钳代码,但是外钳代码只使用于html标签的网页中,经测试也不太好使用。也需要自己动手修改下代码。现在我们教大家提取swf视频的方法,这样就可以任何地方引用了。

我们拿以下这个视频为例
http://tv.cntv.cn/video/C10435/42f11512c0034c41a72160ccaaa72410

第一步,首先点击视频右侧的“分享”-“复制外钳代码”,我们得到如下代码:
<embed id='v_player_cctv' width='960' height='540' flashvars='adCalls=http%3A//pubads.g.doubleclick.net/gampad/adx%3Fiu%3D/8962/web_cntv/dicengye_qiantiepian1%26sz%3D7x1%26c%3D1428814952400%26m%3Dtext/xml%26t%3Dpage_group%253Ddianbo%2526subsite%253Dtv%2526CHANNEL%253D1%2526sorts%253D1%2526maima1%253D02%2526maima2%253D01%2526maima3%253D25%2526maima4%253D00%2526pindao%253Dzcctv13%2526shipinji%253Dz_E6_96_B0_E9_97_BB_E8_B0_83_E6_9F_A5%2526shichang%253D5%2526videoid%253D42f11512c0034c41a72160ccaaa72410%7B%21@%23%7Dhttp%3A//pubads.g.doubleclick.net/gampad/adx%3Fiu%3D/8962/web_cntv/dicengye_qiantiepian2%26sz%3D7x2%26c%3D1428814952400%26m%3Dtext/xml%26t%3Dpage_group%253Ddianbo%2526subsite%253Dtv%2526CHANNEL%253D1%2526sorts%253D1%2526maima1%253D02%2526maima2%253D01%2526maima3%253D25%2526maima4%253D00%2526pindao%253Dzcctv13%2526shipinji%253Dz_E6_96_B0_E9_97_BB_E8_B0_83_E6_9F_A5%2526shichang%253D5%2526videoid%253D42f11512c0034c41a72160ccaaa72410%7B%21@%23%7Dhttp%3A//pubads.g.doubleclick.net/gampad/adx%3Fiu%3D/8962/web_cntv/dicengye_qiantiepian3%26sz%3D7x3%26c%3D1428814952400%26m%3Dtext/xml%26t%3Dpage_group%253Ddianbo%2526subsite%253Dtv%2526CHANNEL%253D1%2526sorts%253D1%2526maima1%253D02%2526maima2%253D01%2526maima3%253D25%2526maima4%253D00%2526pindao%253Dzcctv13%2526shipinji%253Dz_E6_96_B0_E9_97_BB_E8_B0_83_E6_9F_A5%2526shichang%253D5%2526videoid%253D42f11512c0034c41a72160ccaaa72410%7B%21@%23%7Dhttp%3A//pubads.g.doubleclick.net/gampad/adx%3Fiu%3D/8962/web_cntv/dicengye_qiantiepian4%26sz%3D7x4%26c%3D1428814952400%26m%3Dtext/xml%26t%3Dpage_group%253Ddianbo%2526subsite%253Dtv%2526CHANNEL%253D1%2526sorts%253D1%2526maima1%253D02%2526maima2%253D01%2526maima3%253D25%2526maima4%253D00%2526pindao%253Dzcctv13%2526shipinji%253Dz_E6_96_B0_E9_97_BB_E8_B0_83_E6_9F_A5%2526shichang%253D5%2526videoid%253D42f11512c0034c41a72160ccaaa72410&adAfter=http%3A//pubads.g.doubleclick.net/gampad/adx%3Fiu%3D/8962/web_cntv/dicengye_houtiepian%26sz%3D8x1%26c%3D1428814952400%26m%3Dtext/xml%26t%3Dpage_group%253Ddianbo%2526subsite%253Dtv%2526CHANNEL%253D1%2526sorts%253D1%2526maima1%253D02%2526maima2%253D01%2526maima3%253D25%2526maima4%253D00%2526pindao%253Dzcctv13%2526shipinji%253Dz_E6_96_B0_E9_97_BB_E8_B0_83_E6_9F_A5%2526shichang%253D5%2526videoid%253D42f11512c0034c41a72160ccaaa72410&adPause=http%3A//pubads.g.doubleclick.net/gampad/adx%3Fiu%3D/8962/web_cntv/dicengye_zanting%26sz%3D1x1%26c%3D1428814952400%26m%3Dtext/xml%26t%3Dpage_group%253Ddianbo%2526subsite%253Dtv%2526CHANNEL%253D1%2526sorts%253D1%2526maima1%253D02%2526maima2%253D01%2526maima3%253D25%2526maima4%253D00%2526pindao%253Dzcctv13%2526shipinji%253Dz_E6_96_B0_E9_97_BB_E8_B0_83_E6_9F_A5%2526shichang%253D5%2526videoid%253D42f11512c0034c41a72160ccaaa72410&adCorner=http%3A//pubads.g.doubleclick.net/gampad/adx%3Fiu%3D/8962/web_cntv/dicengye_jiaobiao%26sz%3D1x1%26c%3D1428814952400%26m%3Dtext/xml%26t%3Dpage_group%253Ddianbo%2526subsite%253Dtv%2526CHANNEL%253D1%2526sorts%253D1%2526maima1%253D02%2526maima2%253D01%2526maima3%253D25%2526maima4%253D00%2526pindao%253Dzcctv13%2526shipinji%253Dz_E6_96_B0_E9_97_BB_E8_B0_83_E6_9F_A5%2526shichang%253D5%2526videoid%253D42f11512c0034c41a72160ccaaa72410&adBanner=http%3A//pubads.g.doubleclick.net/gampad/adx%3Fiu%3D/8962/web_cntv/dicengye_xuanfubanner%26sz%3D1x1%26c%3D1428814952400%26m%3Dtext/xml%26t%3Dpage_group%253Ddianbo%2526subsite%253Dtv%2526CHANNEL%253D1%2526sorts%253D1%2526maima1%253D02%2526maima2%253D01%2526maima3%253D25%2526maima4%253D00%2526pindao%253Dzcctv13%2526shipinji%253Dz_E6_96_B0_E9_97_BB_E8_B0_83_E6_9F_A5%2526shichang%253D5%2526videoid%253D42f11512c0034c41a72160ccaaa72410&adText=http%3A//pubads.g.doubleclick.net/gampad/adx%3Fiu%3D/8962/web_cntv/dicengye_kongzhitiaowenzi%26sz%3D1x1%26c%3D1428814952400%26m%3Dtext/xml%26t%3Dpage_group%253Ddianbo%2526subsite%253Dtv%2526CHANNEL%253D1%2526sorts%253D1%2526maima1%253D02%2526maima2%253D01%2526maima3%253D25%2526maima4%253D00%2526pindao%253Dzcctv13%2526shipinji%253Dz_E6_96_B0_E9_97_BB_E8_B0_83_E6_9F_A5%2526shichang%253D5%2526videoid%253D42f11512c0034c41a72160ccaaa72410&videoId=VIDE100218392114&filePath=&isAutoPlay=true&url=http://tv.cntv.cn/video/C10435/42f11512c0034c41a72160ccaaa72410&tai=tv&configPath=http://js.player.cntv.cn/xml/config/outside.xml&widgetsConfig=http://js.player.cntv.cn/xml/widgetsConfig/common.xml&languageConfig=&hour24DataURL=VodCycleData.xml&outsideChannelId=channelBugu&videoCenterId=42f11512c0034c41a72160ccaaa72410' allowscriptaccess='always' allowfullscreen='true' menu='false' quality='best' bgcolor='#000000' name='v_player_cctv' src='http://player.cntv.cn/standard/cntvOutSidePlayer.swf' type='application/x-shockwave-flash' lk_mediaid='lk_juiceapp_mediaPopup_1257416656250' lk_media='yes'/>

第二步,然后将上边的代码拼接成如下代码即可。
http://player.cntv.cn/standard/cntvOutSidePlayer.swf?videoId=VIDE100218392114&filePath=&isAutoPlay=true&url=http://tv.cntv.cn/video/C10435/42f11512c0034c41a72160ccaaa72410&tai=tv&configPath=http://js.player.cntv.cn/xml/config/outside.xml&widgetsConfig=http://js.player.cntv.cn/xml/widgetsConfig/common.xml&languageConfig=&hour24DataURL=VodCycleData.xml&outsideChannelId=channelBugu&videoCenterId=42f11512c0034c41a72160ccaaa72410

方法:安装相同的颜色进行拼接。红色为固定部分,绿色按照相应的代码复制。红色绿色直接拼接起来!

第三步,最重要的一步!
以上的链接复制到浏览器其实是可以使用了观看了,但是还不能在论坛里直接使用,因为标签识别不了是swf视频。
所以最后要在后边个参数以swf结尾。&other=1.swf这部分自己随便加。

http://player.cntv.cn/standard/cntvOutSidePlayer.swf?videoId=VIDE100218392114&filePath=&isAutoPlay=true&url=http://tv.cntv.cn/video/C10435/42f11512c0034c41a72160ccaaa72410&tai=tv&configPath=http://js.player.cntv.cn/xml/config/outside.xml&widgetsConfig=http://js.player.cntv.cn/xml/widgetsConfig/common.xml&languageConfig=&hour24DataURL=VodCycleData.xml&outsideChannelId=channelBugu&videoCenterId=42f11512c0034c41a72160ccaaa72410&other=1.swf

视频如下:





离线马上功成

发帖
4
金币
12
威望
0
股份
5
只看该作者 沙发  发表于: 2015-06-14
用户被禁言,该主题自动屏蔽!

发帖
1
金币
1
威望
0
股份
1
只看该作者 板凳  发表于: 2015-07-10

要顶
必须顶
不得不顶
用尽全力顶
再加上千斤顶
总之把它顶到顶
接着使出葵花宝顶
就算顶到史前也要顶
老子看了会用道德经顶
孔子亲自拜你为师天天顶
秦始皇站在阿房宫上使劲顶
汉高祖挥师杀向东罗马为你顶
吕布抛弃了貂禅而选择了帮你顶
张三丰见了后用太极拳九式全力顶
离线zombire

发帖
20
金币
10
威望
0
股份
20
只看该作者 地板  发表于: 2015-11-24
感谢楼主分享!
离线limit00qzj

发帖
10
金币
0
威望
0
股份
10
只看该作者 4楼 发表于: 2015-11-28
新人学习,谢谢晒而
离线limit00qzj

发帖
10
金币
0
威望
0
股份
10
只看该作者 5楼 发表于: 2015-11-28
感谢分享11
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个