Embed Cnn live video to forum thread.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • edch
    New Member
    • Mar 2008
    • 11

    Embed Cnn live video to forum thread.

    Hello, I am trying to have the CNN live video feed show in a forum. I've tried doing a bbcode but I really have no idea on what I am doing.
    This is the link to the video feed. http://www.cnn.com/video/live/live.html?stream=stream1

    Is there a way to have that link to be open in a thread instead of having to click on the link?

    Thanks!
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    That is a link to a web page that plays the video. You will need to link to the actual media file if you want to embed it into your posts. A generic "embed" BB code usually works:

    Comment

    • edch
      New Member
      • Mar 2008
      • 11

      #3
      Well here is some code can you see anywhere in here what the source file would be?
      Code:
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
              "[URL]http://www.w3.org/TR/html4/loose.dtd[/URL]">
      <html lang="en">
       <head>
        <title>CNN.com Live</title>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
        <style type="text/css"> @import url([URL]http://i.cdn.turner.com/cnn/.element/css/2.0/cnnLive.css[/URL]); </style>
        <script src="[URL]http://i.cdn.turner.com/cnn/cnn_adspaces/cnn_adspaces.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/video/xmp/xmp_net.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/video/xmp/xmp_util.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/video/xmp/xmp_views.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/video/xmp/xmp_playerapi.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/video/xmp/xmp_playerapi_native.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/video/xmp/xmp_playlistapi.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/video/xmp/xmp_services.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/video/xmp/xmp_baseplayer.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/video/live/primary.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/video/live/live_player_lib.js"></script[/URL]>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/scripts/prototype.js[/URL]" type="text/javascript"></script>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/scripts/scriptaculous.js?load=effects[/URL]" type="text/javascript"></script>
        <script src="[URL]http://i.cdn.turner.com/cnn/.element/js/2.0/main.js[/URL]" type="text/javascript"></script>
        <script language="JavaScript" type="text/javascript">var cnnCurrTime = new Date(1206629628865); var cnnCurrHour = 10; var cnnCurrMin = 53; var cnnCurrDay='Thu';</script>
        <script type="text/javascript" src="[URL]http://i.l.cnn.net/cnn/.element/js/2.0/ad_head0.js"></script[/URL]>
      <script type="text/javascript" src="[URL]http://i.l.cnn.net/cnn/cnn_adspaces/cnn_adspaces.js"></script[/URL]>
        <script type="text/javascript"> 
       function cnnLiveTxtFocus(obj,initialTxt)
       {
        if(obj.value==initialTxt) 
        {
         obj.value='';
         //obj.style.color=(obj.style.color==""?"#000000":"") 
        }
       }
        </script>
       </head>
       <body onload="init()" onunload="fini()">
        <!-- Important to create 'cookieCrumb' image - used by Ads code -->
        <img src="[URL]http://i.a.cnn.net/cnn/images/1.gif[/URL]" alt="" width="0" height="0" border="0"
         vspace="0" hspace="0" name="cookieCrumb" id="cookieCrumb" align="right">
        <div class="cnnLiveContainer" id="LiveContainer" id="LiveContainer">
         <div class="cnnLiveHeader" style="padding: 0px 0px 8px 0px;" id="LiveHeaderContainer" name="LiveHeaderContainer">
          <div class="cnnLiveAd" id="LiveAd" name="LiveAd"></div>
          <span id="LiveHeader" name="LiveHeader" border="0" alt="CNN Live Video"></span>
          <!--<div style="clear:both"><img src="[URL]http://i.a.cnn.net/cnn/images/1.gif[/URL]" width="1" height="1" border="0" alt=""></div>-->
         </div>
         <div id="LiveContentContainer" name="LiveContentContainer" class="cnnLiveContentContainer">
          <div id="LiveInsideBoxTopCorners" name="LiveInsideBoxTopCorners" class="cnnLiveInsideBoxTopCorners"><!--<img src="/.element/img/2.0/video/cnnlive/live_inside_tl.gif" width="4" height="4" alt="">--></div>
          <div id="LiveInsideContainer" name="LiveInsideContainer" class="cnnLiveInsideContainer">
           <div class="cnnLiveInsideContent" id="LiveInsideContent" name="LiveInsideContent">
            <table id="PlayerContainer" name="PlayerContainer" border="0" cellpadding="0" cellspacing="0" width="100%">
             <tr>
              <td valign="top">
               <div id="LiveLeftInside" name="LiveLeftInside" class="cnnLiveLeftInside">
                <div id="CNNLIVE_PLAYER" name="CNNLIVE_PLAYER" class="cnnLivePlayer"></div>
                <div class="cnnLivePlayerButtons" id="LiveControls" name="LiveControls" style="display: none">
       
                 <div id="cnnVidOCLeft">
                  <div class="cnnLiveButtonsPause"><input id="playStopButton" name="playStopButton" type="image" src="[URL]http://i.cdn.turner.com/cnn/.element/img/2.0/video/cnnlive/play_btn_disabled.gif"></div[/URL]>
                  <div class="cnnLiveButtonsVolume"><input id="muteOnOffButton" name="muteOnOffButton" type="image" src="[URL]http://i.cdn.turner.com/cnn/.element/img/2.0/video/cnnlive/sound_on_btn.gif"></div[/URL]>
                  <div id="LiveButtonsSlider" name="LiveButtonsSlider" class="cnnLiveButtonsSlider" style="width: 47px; height: 5px">
                  </div>          
                 </div>
       
                 <div id="cnnVidOCRight"></div>
                 <div class="cnnVidOBot"><div></div></div>           
                </div>
                <div id="infoArea" name="infoArea" type=""></div>          
               </div>
              </td>
              <td valign="top" id="LiveRightInside" name="LiveRightInside">
               <div id="cnnLiveRightInside">
                <div id="stream1" name="stream1" style="DISPLAY: none">
                </div>
                <div id="stream2" name="stream2" style="DISPLAY: none">
                </div>
                <div id="stream3" name="stream3" style="DISPLAY: none">
                </div>
                <div id="stream4" name="stream4" style="DISPLAY: none">
                </div>
               </div>
              </td>
             </tr>
            </table>
           </div>
          </div> <!-- /cnnLiveInsideContainer -->
          <div class="cnnLiveInsideBoxFootCorners" id="LiveInsideBoxFootCorners" name="LiveInsideBoxFootCorners">
           <img src="[URL]http://i.cdn.turner.com/cnn/.element/img/2.0/video/cnnlive/live_inside_bl.gif[/URL]">
          </div>
          <div class="cnnLiveHelp" id="LiveHelp" name="LiveHelp">
           <a target="livehelp" name='helpLink' id='helpLink'><img src="[URL]http://i.cdn.turner.com/cnn/.element/img/2.0/video/cnnlive/help_btn.gif[/URL]" border="0" width="34" height="17"
             alt=""></a>
          </div>
         </div> <!-- /cnnLiveContentContainer -->
         <div class="cnnLiveOutsideBoxFooter" id="LiveOutsideBoxFooter" name="LiveOutsideBoxFooter">
          <img src="[URL]http://i.cdn.turner.com/cnn/.element/img/2.0/video/cnnlive/live_outside_bl.gif[/URL]">
         </div>
        </div>
        <img src="[URL]http://i.l.cnn.net/cnn/1.gif[/URL]" alt="" id="TargetImage" name="TargetImage" width="1" height="1" onLoad="getAdHeadCookie(this)"><img src="[URL]http://i.l.cnn.net/cnn/1.gif[/URL]" alt="" id="TargetImageDE" name="TargetImageDE" width="1" height="1" onLoad="getDEAdHeadCookie(this)"><img src="[URL]http://i.l.cnn.net/cnn/images/1.gif[/URL]" alt="" width="0" height="0" border="0" vspace="0" hspace="0" name="cookieCrumb" id="cookieCrumb" align="right">
      <!-- SiteCatalyst code -->
      <script language="JavaScript" src="[URL]http://i.cnn.net/cnn/.element/js/2.0/s_code.js"></script[/URL]>
      <script language="JavaScript">
      <!--
      var cnnWinLoc = window.location.pathname;
      var cnnWinExtra = window.location.hash;
      var cnnWinLocRegExp = /\/$/; 
      var cnnWinExtraRegExp = /\?/;
      if(cnnWinLocRegExp.test(cnnWinLoc)){cnnWinLoc = cnnWinLoc + "index.html";}
      if(cnnWinExtra != "undefined") {
      if(cnnWinExtraRegExp.test(cnnWinExtra)){var cnnOmniExtra = cnnWinExtraRegExp.split(cnnWinExtra);cnnWinLoc = cnnWinLoc + cnnOmniExtra[0];}
      else {cnnWinLoc = cnnWinLoc + cnnWinExtra;}}
      if (typeof(cnnPageName) != "undefined") {s.pageName = cnnPageName;s.eVar1 = cnnPageName;} else {s.pageName = cnnWinLoc;s.eVar1 = cnnWinLoc;}
      if (typeof(cnnSectionName) != "undefined") {s.channel=cnnSectionName;s.eVar2=cnnSectionName;} else {s.channel="Nonlabeled";s.eVar2="Nonlabeled";}
      if (typeof(cnnSubSectionName) != "undefined") {s.server=cnnSubSectionName;s.eVar3=cnnSubSectionName;} else {s.server="";s.eVar3="";}
      if (typeof(cnnSectionFront) != "undefined") {s.prop1=cnnSectionFront;} 
      if (typeof(cnnContentType) != "undefined") {s.prop4=cnnContentType;s.prop6=s.pageName;}
      /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
      if (typeof(cnnMosaicDetect) == "undefined")
      {var s_code=s.t();if(s_code)document.write(s_code)}//--> </script>
      <script language="JavaScript"><!--
      if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
      //--></script><noscript><img
      src="[URL]http://metrics.cnn.com/b/ss/cnn2global/1/H.1--NS/0?pageName=No%20Javascript[/URL]"
      height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
      <!-- End SiteCatalyst code -->
      <noscript>
       <style type="text/css">
        #cnnTxtCmpnt {display:block;}
        #cnnTabNav {display:none;}
        </style>
      </noscript>
       
       </body>
      </html>

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        I don't see an obvious source file in that code. Usually if a video site wants you to be able to hot link their content then they will make it obvious.

        Comment

        • edch
          New Member
          • Mar 2008
          • 11

          #5
          Ok, thanks you for your time.

          Comment

          Related Topics

          Collapse

          Working...