网络电视代码 - 中国网络电视台体育台cctv5直播大厅

      以前在这个Jimdo上搞过不少网络电视代码,大都是第三方提供的,用了一段时间后,不是失效就是会叠加一些广告。后来网上邻居又试着将一些网络电视的官方网站用 <iframe>...</iframe> 将它显示在这里,如《中国网络电视台体育台直播大厅 - CCTV5免插件直播测试版在Jimdo上的实验》一文。这种方法固然不会失效或外加广告,但缺点也非常明显:它无法独立地将节目画面抠出来,必然要连带一些其他网页内容。

      刚才又研究了一下中国网络电视台体育台cctv5直播大厅(网址: http://sports.cntv.cn/live/cctv5/index.shtml),成功地将电视部分的画面抠了出来。它的效果如下:

友情提示:

由于演示内容涉嫌侵权,已被博主删除,谢谢访问!

      以下代码仅供研究、学习之用,请匆作它用,否则一切后果自负。

<div class="column_wrapper" align="center">
    <div class="md_bd" id="iframe-sports">
    </div>
</div>
<script type="text/javascript" src="http://t.live.cntv.cn/cntvwebplay/cntvplayer/js/cntv_main.js" charset="utf-8">
</script><script language="JavaScript" type="text/javascript">
//<![CDATA[
        var videoAddress = "pa://cctv_p2p_hdcctv5";
        var wrating = "";
        var ipadAddress = "http://t.live.cntv.cn/m3u8/cctv-5.m3u8";
        var attributes = {
                        boxSize : 'default',              
                        adloading : 'http://acs86.com/a.htm%3Fpv=1%26sp=68943,0,0,0,0,1,1,10%26stt=3%26cb='+Math.random(),
                        skin : 'qdui',  
                        videoAddress : videoAddress,
                        ipadAddress : ipadAddress,
                        videoType : 'p2p',
                        videoLoop : 0,   
                        wrating : wrating,
                        lazyload : false
        };
        var livePlay = new cntv.player.main('iframe-sports', attributes);
        livePlay.cntvstart();
        //]]>
</script>

Write a comment

Comments: 5
  • #1

    NBA (Friday, 11 May 2012 09:01)

    希望跟博主合作 www.nba8.net

  • #2

    Obat Kanker Payudara Dari Green World Ampuh (Thursday, 14 May 2015 08:07)

    thank you for all the information, hopefully with this article we can get the perfect result.

  • #3

    Obat Alami Cacar Air (Thursday, 14 May 2015)

    This article and website we can get the link exchange is very good and accurate for our blog, thank you and success always.

  • #4

    Chanel iPhone 6 Plus Cases (Tuesday, 16 June 2015 12:59)

    In Evernote Basic you can take notes and create lists in them and then turn those lists into interactive to do lists you can check off when done. You can also save URL and other clips from the web directly into a note

  • #5

    shop and compare drones (Thursday, 08 June 2017 23:46)

    including reasonable comments here...