+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 39
AV and Multimedia Related Thread, Embed BBC Worldcup in Technical; Anyone managed to embed this code yet?...
  1. #16

    Join Date
    Oct 2007
    Location
    Cambridgeshire, UK
    Posts
    306
    Thank Post
    58
    Thanked 23 Times in 20 Posts
    Rep Power
    18
    Anyone managed to embed this code yet?

  2. #17
    fawkers's Avatar
    Join Date
    Jun 2007
    Location
    Southend
    Posts
    193
    Thank Post
    32
    Thanked 22 Times in 21 Posts
    Blog Entries
    2
    Rep Power
    31
    *bump*

    Has anyone had any luck with this?

  3. #18

    Join Date
    Feb 2010
    Posts
    216
    Thank Post
    68
    Thanked 41 Times in 28 Posts
    Rep Power
    16
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>BBC Live Streams</title>
    <script type="text/javascript" src="http://www.bbc.co.uk/emp/swfobject.js"></script>
    <script type="text/javascript" src="http://www.bbc.co.uk/emp/embed.js"></script>
    <!-- please do not include any scripts below this line in public bbc.co.uk pages. -->
    <link type="text/css" rel="stylesheet" href="SyntaxHighlighter.css" />
    <link href="style.css" rel="stylesheet" type="text/css" media="all" />
    <script type="text/javascript" src="http://www.bbc.co.uk/cs/jst/mod/1/jst_core.v1.2.js"></script>
    <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/shCore.js"></script>
    
    <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/shBrushJScript.js"></script>
    <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/prototype.js"></script>
    <script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/scriptaculous.js?load=effects"></script>
    </head>
    <body>
    <div id="emp1" class="player" style="float:left">
    <p>In order to see this content you need to have both <a href="http://www.bbc.co.uk/webwise/askbruce/articles/browse/java_1.shtml" title="BBC Webwise article about enabling javascript">Javascript</a> enabled and <a href="http://www.bbc.co.uk/webwise/askbruce/articles/download/howdoidownloadflashplayer_1.shtml" title="BBC Webwise article about downloading">Flash</a> installed. Visit <a href="http://www.bbc.co.uk/webwise/">BBC&nbsp;Webwise</a> for full instructions</p>
    </div>
    
    <script type="text/javascript">
    
      dp.SyntaxHighlighter.HighlightAll('onceCode'); 
      var width= 640;
      var height= 395;   
      var playlist;
      var config;   
      var revision;  
    
    function reload(url) {
      var emp = new embeddedMedia.Player();
      emp.setWidth(width);
      emp.setHeight(height);
      emp.setDomId("emp1"); 
      emp.set("config_settings_autoPlay","true");
      playlist = "http://www.bbc.co.uk/emp/simulcast/"+url+".xml";
      emp.setPlaylist(playlist);
      config = "http://www.bbc.co.uk/emp/simulcast/config_"+url+".xml";
      emp.setConfig(config);
      emp.write();  
      updateEmbed();
     }
     
     function updateEmbed() {
      $('codeWrap').update('<pre name="code" class="js:nogutter" id="embedCode"></pre>');
      $('embedCode').update("var emp = new embeddedMedia.Player();"+"\n"+
                            "emp.setWidth('"+width+"');"+"\n"+
                            "emp.setHeight('"+height+"');"+"\n"+
                            "emp.setPlaylist('"+playlist+"');"+"\n"+
                            "emp.setConfig('"+config+"');"+"\n"+
                            "emp.write();");            
      dp.SyntaxHighlighter.HighlightAll('code'); 
     }
    
     reload("bbc_one_london");
    </script>
    </body>
    </html>
    The important part here is the:

    Code:
    reload("bbc_one_london");
    This determines which cast you load, bellow are a list of the other ones on that page:

    Code:
    bbc_two_england
    bbc_three
    bbc_four
    cbbc
    cbeebies
    bbc_news24
    bbc_parliament
    bbc_alba
    This page has just got the player in it nothing else, with the intention of it being used in a xibo layout.

    Hope this helps
    Last edited by JRowley; 6th October 2010 at 08:47 AM.

  4. 9 Thanks to JRowley:

    Arthur (1st March 2011), fawkers (5th October 2010), HodgeHi (14th May 2012), jonnymcguigan (25th May 2011), mattgrimley (5th March 2013), MHUK (23rd October 2012), sircodemonkey (28th July 2012), zag (12th September 2013), zbjsy (12th September 2013)

  5. #19
    fawkers's Avatar
    Join Date
    Jun 2007
    Location
    Southend
    Posts
    193
    Thank Post
    32
    Thanked 22 Times in 21 Posts
    Blog Entries
    2
    Rep Power
    31
    thanks, thats exactly what i plan to use it for.

  6. #20

    Join Date
    Mar 2011
    Location
    UK
    Posts
    3
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    wow this script is spot on. One thing I would like to lknow is it possible to remove the controls at the bottom? I have another script that does only the news headlines and I can remove the controls

  7. #21

    Join Date
    Feb 2010
    Posts
    216
    Thank Post
    68
    Thanked 41 Times in 28 Posts
    Rep Power
    16
    Unfortunately I never found a way to remove the controls, would need to try and find out if there are any parameters you could give the player when its created in the Javascript, unfortunately (again) all of the source for the Javascript is on the bbc servers, so you cant just inspect it and find the parameters.

    Its unlikely that you can without BBC help .

  8. Thanks to JRowley from:

    garvey2003 (2nd March 2011)

  9. #22

    Join Date
    Mar 2011
    Location
    UK
    Posts
    3
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by JRowley View Post
    Unfortunately I never found a way to remove the controls, would need to try and find out if there are any parameters you could give the player when its created in the Javascript, unfortunately (again) all of the source for the Javascript is on the bbc servers, so you cant just inspect it and find the parameters.

    Its unlikely that you can without BBC help .
    Thanks for that. I thought it be somethign like that. I've been using BBC Headline news stream which rotates every three minutes. works well but we want more news.

    this script works well but the refresh takes a long time and makes my page blank for about 30 seconds.

    Going to have a good play with it today

  10. #23
    phughes's Avatar
    Join Date
    Oct 2007
    Location
    Burnley
    Posts
    77
    Thank Post
    11
    Thanked 4 Times in 2 Posts
    Rep Power
    15

    RE:

    Fantastic info guys!

    Anyone any ideas on how to get subtitles working with this html code?

    Thanks,
    Pete

  11. #24

    Join Date
    Feb 2010
    Posts
    216
    Thank Post
    68
    Thanked 41 Times in 28 Posts
    Rep Power
    16
    Its the same story as the controls i believe, i never found a way to add subtitles, it might be possible but without diving into the javascript on the BBC end i wouldnt be able to tell you.

  12. #25

    Join Date
    Nov 2011
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    can this open automatically in full screen
    can it work with sky news?

  13. #26

    Join Date
    Feb 2010
    Posts
    216
    Thank Post
    68
    Thanked 41 Times in 28 Posts
    Rep Power
    16
    This wont work for Sky News, this uses a purely BBC driven system, im not aware of Sky doing something similar, they may do but im not aware of it.

  14. #27

    Join Date
    Nov 2011
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by JRowley View Post
    This wont work for Sky News, this uses a purely BBC driven system, im not aware of Sky doing something similar, they may do but im not aware of it.
    Thanks for the quick reply

    how about open automatically in full screen?

  15. #28

    Join Date
    Feb 2010
    Posts
    216
    Thank Post
    68
    Thanked 41 Times in 28 Posts
    Rep Power
    16
    I never figured out full screen, its not something that you can change i dont think, there is a remote config file that you might be able to download and fiddle around with but when i looked at it there different appear to be anything obvious when it comes to hiding controls, full screen etc, you can quite easily adjust the size of the picture by changing the values in the script however.

  16. #29

    Join Date
    Nov 2011
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    thanks

  17. #30
    pjm
    pjm is offline
    pjm's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    3
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by garvey2003 View Post
    wow this script is spot on. One thing I would like to lknow is it possible to remove the controls at the bottom? I have another script that does only the news headlines and I can remove the controls
    Hi, The code is fantastic but I also wanted to remove the player, the easiest way I found was to put the link to the HTML file in an iFrame, then using the sizing within the HTML code and the iFrame size you can mask the controls.

  18. Thanks to pjm from:

    JRowley (14th May 2012)

SHARE:
+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. How to embed flash
    By darbyshire in forum Web Development
    Replies: 1
    Last Post: 20th April 2010, 03:02 PM
  2. Replies: 7
    Last Post: 12th April 2010, 01:40 PM
  3. Embed a looping playlist of local media
    By mb2k01 in forum Web Development
    Replies: 4
    Last Post: 14th October 2009, 06:30 PM
  4. How to insert / embed movie files
    By DirtySnipe in forum EduGeek Joomla 1.5 Package
    Replies: 5
    Last Post: 25th June 2008, 08:36 PM
  5. Embed a google map on a static page?
    By reggiep in forum EduGeek Joomla 1.0 Package
    Replies: 7
    Last Post: 20th May 2008, 03:46 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •