+ Post New Thread
Page 3 of 3 FirstFirst 123
Results 31 to 39 of 39
AV and Multimedia Related Thread, Embed BBC Worldcup in Technical; Hi, this is amazing and what i've been looking for, thanks guys. I have one question, is there a way ...
  1. #31

    Join Date
    Jul 2012
    Posts
    1
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi, this is amazing and what i've been looking for, thanks guys. I have one question, is there a way to disable the volume of the player?

  2. #32
    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 sircodemonkey View Post
    Hi, this is amazing and what i've been looking for, thanks guys. I have one question, is there a way to disable the volume of the player?
    Not too sure how you would actually remove the audio from the code, had a quick look and not obvious to me, we use the live streaming and as it is a news channel require the audio to be ON, not too sure why you would want the audio off ???.

    If you are feeding a screen via VGA then of course the audio is separate via the 3.5mm jack, if it is fed via HDMI then can you not just mute via the OS built in audio controls ??? without knowing exactly what you are trying to achieve it is hard to know how to help, more info if possible.

  3. #33

    Join Date
    Jan 2010
    Posts
    62
    Thank Post
    7
    Thanked 5 Times in 5 Posts
    Rep Power
    10
    Quote Originally Posted by JRowley View Post
    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 onclick="_gaq.push(['_trackEvent', 'Outgoing', 'www.bbc.co.uk', '/webwise/askbruce/articles/browse/java_1.shtml']);" 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 onclick="_gaq.push(['_trackEvent', 'Outgoing', 'www.bbc.co.uk', '/webwise/askbruce/articles/download/howdoidownloadflashplayer_1.shtml']);" href="http://www.bbc.co.uk/webwise/askbruce/articles/download/howdoidownloadflashplayer_1.shtml" title="BBC Webwise article about downloading">Flash</a> installed. Visit <a onclick="_gaq.push(['_trackEvent', 'Outgoing', 'www.bbc.co.uk', '/webwise/']);" href="http://www.bbc.co.uk/webwise/">BBCWebwise</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
    many thanks for this, still working in 2013 Any other channels that can now be added??

  4. #34

    Join Date
    Feb 2010
    Posts
    85
    Thank Post
    22
    Thanked 20 Times in 12 Posts
    Rep Power
    13
    Unfortunately its a BBC service so I'm unable to add channels, you can go here to view which channels are available, though they don't appear to have changed from the ones I listed in the original post.

    BBC Live Streams

    Glad to hear its still working

  5. #35

    Join Date
    Oct 2013
    Posts
    2
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Sorry to bring this thread up again but I have been trying to get the code to work so I can have BBC New 24 playing on a smart screen I am developing in C#. BBC Live Streams works without fail, I have copied the code directly from that website and the code submitted to the edugeek site and each time it fails to work, the code from this site gets further as the JavaScript loads however, I am left with a spinning circle as though it is attempting to load the stream but never does. I was hoping that you might be able to tell me if I am doing something wrong? My idea was to make a HTML page with the code written into it and then use the Web Control to load the video. When I run it in the program and in IE directly it doesn't work. Below is the code that I am using in the HTML page, any help would be greatly appreciated.
    HTML 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 onclick="_gaq.push(['_trackEvent', 'Outgoing', 'www.bbc.co.uk', '/webwise/askbruce/articles/browse/java_1.shtml']);" 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 onclick="_gaq.push(['_trackEvent', 'Outgoing', 'www.bbc.co.uk', '/webwise/askbruce/articles/download/howdoidownloadflashplayer_1.shtml']);" href="http://www.bbc.co.uk/webwise/askbruce/articles/download/howdoidownloadflashplayer_1.shtml" title="BBC Webwise article about downloading">Flash</a> installed. Visit <a onclick="_gaq.push(['_trackEvent', 'Outgoing', 'www.bbc.co.uk', '/webwise/']);" href="http://www.bbc.co.uk/webwise/">BBCWebwise</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_new24");
    < /script>
    < /body>
    < /html>

  6. #36

    Join Date
    Feb 2010
    Posts
    85
    Thank Post
    22
    Thanked 20 Times in 12 Posts
    Rep Power
    13
    I must confess, while I am quite versed in C# I have never really developed any web applications using it. When you say you try this page in IE and it doesn't work, what is the result?

  7. #37

    Join Date
    Oct 2013
    Posts
    2
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Thank you so much for your fast response. However after I gutted the HTML code down to it's basics and it seems to be working.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="XHTML namespace">
     <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
      <title>BBC Live Streams</title>
      <script src="http://www.bbc.co.uk/emp/swfobject.js"></script>
      <script src="http://www.bbc.co.uk/emp/embed.js"></script>
     </head>
     <body>
      <div id="emp1" class="player" style="position:fixed; top:0px; left:0px;">
       <p>BBC New 24 content has not loaded correctly</p>
      </div>
      <script>
       var emp = new embeddedMedia.Player();
       emp.setDomId('emp1');
       emp.setWidth('885');
       emp.setHeight('580');
       emp.setPlaylist('http://www.bbc.co.uk/emp/simulcast/bbc_news24.xml');
       emp.setConfig('http://www.bbc.co.uk/emp/simulcast/config_bbc_news24.xml');
       emp.set('config_settings_autoPlay','true');
       emp.write();
      </script>
     </body>
    </html>
    Oddly enough it only works in the c# Web Control and still fails in IE. I think that it has something to do with the Smoothwall.

    Either way this is working nicely now.

  8. Thanks to NerdPanda991 from:

    JRowley (29th October 2013)

  9. #38

    Join Date
    Feb 2010
    Posts
    85
    Thank Post
    22
    Thanked 20 Times in 12 Posts
    Rep Power
    13
    It ended up being nice and neat! I never really bothered trying to trim the fat, but you've done an excellent job of it.

  10. #39


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,757
    Thank Post
    221
    Thanked 2,630 Times in 1,938 Posts
    Rep Power
    779
    Quote Originally Posted by NerdPanda991 View Post
    When I run it in IE directly it doesn't work.
    My version works in IE should you need it (it's based on the code I posted in this thread).



    Code:
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <title>BBC Live Streams</title>
        <style>
            body { margin: 0px 0px 0px 0px; }
        </style>
    </head>
    <body>
    
        <div style="float:left">
            <embed type="application/x-shockwave-flash"
                   src="http://www.bbc.co.uk/emp/10player.swf"
                   width="832"
                   height="503"
                   style="display: block !important;"
                   id="bbc_emp_embed_emp1"
                   name="bbc_emp_embed_emp1"
                   bgcolor="#000000"
                   quality="high"
                   wmode="direct"
                   allowfullscreen="true"
                   allowscriptaccess="always"
                   flashvars="embedReferer=&amp;embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&amp;domId=emp1&amp;config_settings_autoPlay=true&amp;playlist=http://www.bbc.co.uk/emp/simulcast/bbc_news24.xml&amp;config=http://www.bbc.co.uk/emp/simulcast/config_bbc_news24.xml">
    
                <!--
                   *** Channels ***
                   flashvars="embedReferer=&amp;embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&amp;domId=emp1&amp;config_settings_autoPlay=true&amp;playlist=http://www.bbc.co.uk/emp/simulcast/bbc_one_london.xml&amp;config=http://www.bbc.co.uk/emp/simulcast/config_bbc_one_london.xml">
                   flashvars="embedReferer=&amp;embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&amp;domId=emp1&amp;config_settings_autoPlay=true&amp;playlist=http://www.bbc.co.uk/emp/simulcast/bbc_two_england.xml&amp;config=http://www.bbc.co.uk/emp/simulcast/config_bbc_two_england.xml">
                   flashvars="embedReferer=&amp;embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&amp;domId=emp1&amp;config_settings_autoPlay=true&amp;playlist=http://www.bbc.co.uk/emp/simulcast/bbc_three.xml&amp;config=http://www.bbc.co.uk/emp/simulcast/config_bbc_three.xml">
                   flashvars="embedReferer=&amp;embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&amp;domId=emp1&amp;config_settings_autoPlay=true&amp;playlist=http://www.bbc.co.uk/emp/simulcast/bbc_four.xml&amp;config=http://www.bbc.co.uk/emp/simulcast/config_bbc_four.xml">
                   flashvars="embedReferer=&amp;embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&amp;domId=emp1&amp;config_settings_autoPlay=true&amp;playlist=http://www.bbc.co.uk/emp/simulcast/cbbc.xml&amp;config=http://www.bbc.co.uk/emp/simulcast/config_cbbc.xml">
                   flashvars="embedReferer=&amp;embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&amp;domId=emp1&amp;config_settings_autoPlay=true&amp;playlist=http://www.bbc.co.uk/emp/simulcast/cbeebies.xml&amp;config=http://www.bbc.co.uk/emp/simulcast/config_cbeebies.xml">
                   flashvars="embedReferer=&amp;embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&amp;domId=emp1&amp;config_settings_autoPlay=true&amp;playlist=http://www.bbc.co.uk/emp/simulcast/bbc_news24.xml&amp;config=http://www.bbc.co.uk/emp/simulcast/config_bbc_news24.xml">
                   flashvars="embedReferer=&amp;embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&amp;domId=emp1&amp;config_settings_autoPlay=true&amp;playlist=http://www.bbc.co.uk/emp/simulcast/bbc_parliament.xml&amp;config=http://www.bbc.co.uk/emp/simulcast/config_bbc_parliament.xml">
                   flashvars="embedReferer=&amp;embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&amp;domId=emp1&amp;config_settings_autoPlay=true&amp;playlist=http://www.bbc.co.uk/emp/simulcast/bbc_alba.xml&amp;config=http://www.bbc.co.uk/emp/simulcast/config_bbc_alba.xml">
                -->
        </div>
    
    </body>
    </html>

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

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
  •