Jump to content

Recommended Posts

Posted
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.
Posted
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?

Posted
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.
  • 6 months later...
Posted
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.

  • Thanks 1
  • 2 months later...
Posted
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.

  • 1 year later...
Posted
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">



BBC Live Streams















In order to see this content you need to have both Javascript enabled and Flash installed. Visit BBCWebwise for full instructions


<br />
<br />
  dp.SyntaxHighlighter.HighlightAll('onceCode'); <br />
  var width= 640;<br />
  var height= 395;   <br />
  var playlist;<br />
  var config;   <br />
  var revision;  <br />
<br />
function reload(url) {<br />
  var emp = new embeddedMedia.Player();<br />
  emp.setWidth(width);<br />
  emp.setHeight(height);<br />
  emp.setDomId("emp1"); <br />
  emp.set("config_settings_autoPlay","true");<br />
  playlist = "http://www.bbc.co.uk/emp/simulcast/"+url+".xml";<br />
  emp.setPlaylist(playlist);<br />
  config = "http://www.bbc.co.uk/emp/simulcast/config_"+url+".xml";<br />
  emp.setConfig(config);<br />
  emp.write();  <br />
  updateEmbed();<br />
 }<br />
 <br />
 function updateEmbed() {<br />
  $('codeWrap').update('<pre name="code" class="js:nogutter" id="embedCode">');<br />
  $('embedCode').update("var emp = new embeddedMedia.Player();"+"\n"+<br />
                        "emp.setWidth('"+width+"');"+"\n"+<br />
                        "emp.setHeight('"+height+"');"+"\n"+<br />
                        "emp.setPlaylist('"+playlist+"');"+"\n"+<br />
                        "emp.setConfig('"+config+"');"+"\n"+<br />
                        "emp.write();");            <br />
  dp.SyntaxHighlighter.HighlightAll('code'); <br />
 }<br />
<br />
 reload("bbc_one_london");<br />



 

The important part here is the:

 

reload("bbc_one_london");

 

This determines which cast you load, bellow are a list of the other ones on that page:

 

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??

Posted

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 :D

  • 1 month later...
Posted
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.
       "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
< script type="text/javascript" src="http://www.bbc.co.uk/emp/swfobject.js">
< script type="text/javascript" src="http://www.bbc.co.uk/emp/embed.js">
< !-- 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 type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/shCore.js">
< script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/shBrushJScript.js">
< script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/prototype.js">
< script type="text/javascript" src="http://www.bbc.co.uk/emp/simulcast/scriptaculous.js?load=effects">
< /head>
< body>
< div id="emp1" class="player" style="float:left">
< p>In order to see this content you need to have both Javascript enabled and Flash installed. Visit BBCWebwise for full instructions
< /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('');
  $('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>

Posted
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?
Posted

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.

 

      "[url]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd[/url]">


 
 BBC Live Streams
 
 


 
  
BBC New 24 content has not loaded correctly
 
 <br />
   var emp = new embeddedMedia.Player();<br />
   emp.setDomId('emp1');<br />
   emp.setWidth('885');<br />
   emp.setHeight('580');<br />
   emp.setPlaylist('http://www.bbc.co.uk/emp/simulcast/bbc_news24.xml');<br />
   emp.setConfig('http://www.bbc.co.uk/emp/simulcast/config_bbc_news24.xml');<br />
   emp.set('config_settings_autoPlay','true');<br />
   emp.write();<br />
  


 

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.

  • Thanks 1
Posted
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).

 

http://i.imgur.com/4uJjJjm.png

 



   
   BBC Live Streams
   <br />
        body { margin: 0px 0px 0px 0px; }<br />
    



   
                      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=&embedPageUrl=http://www.bbc.co.uk/emp/simulcast/&domId=emp1&config_settings_autoPlay=true&playlist=http://www.bbc.co.uk/emp/simulcast/bbc_news24.xml&config=http://www.bbc.co.uk/emp/simulcast/config_bbc_news24.xml">

           
   


  • 11 months later...
Posted
The streams on the original page have all been removed - in fact the entire page has been taken down, you just get the BBC error page now.
Posted
The streams on the original page have all been removed - in fact the entire page has been taken down, you just get the BBC error page now.

 

Do you think they just moved the files/pages?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...