edie209 Posted January 21, 2013 Posted January 21, 2013 I have a "bbcnews.htm" document on my intranet server and point my xibo page to it Code Below "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 BBC Webwise 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_news24");<br /> Thanks so much that works great just got to resize it to fit our design
danzig67 Posted March 5, 2013 Posted March 5, 2013 Hi all, Thought this might be a good place to ask a Xibo related question instead of starting a new thread. I've recently started using Xibo to display to large screen in our main school corridor. So far, every one seems rather impressed with the results. Our default design consists of a welcome to the school message, a quote/interesting fact of the day section and a ticker displaying scrolling school news along the bottom. In the middle of the layout I have embedded BBC News 24 streaming from the BBC website using the following code: [color=#0000ff] [color=#0000ff] "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/color] [color=#0000ff]<[/color][color=#800000]html[/color][color=#ff0000]xmlns[/color][color=#0000ff]="http://www.w3.org/1999/xhtml">[/color] [color=#0000ff]<[/color][color=#800000]head[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#800000]meta[/color][color=#ff0000]http-equiv[/color][color=#0000ff]="Content-Type" [/color][color=#ff0000]content[/color][color=#0000ff]="text/html;charset=utf-8" />[/color] [color=#0000ff]<[/color][color=#800000]title[/color][color=#0000ff]>[/color]BBC Live Streams[color=#0000ff][/color][color=#800000]title[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#800000]script[/color][color=#ff0000]type[/color][color=#0000ff]="text/javascript" [/color][color=#ff0000]src[/color][color=#0000ff]="http://www.bbc.co.uk/emp/swfobject.js">[/color][color=#0000ff][/color][color=#800000]script[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#800000]script[/color][color=#ff0000]type[/color][color=#0000ff]="text/javascript" [/color][color=#ff0000]src[/color][color=#0000ff]="http://www.bbc.co.uk/emp/embed.js">[/color][color=#0000ff][/color][color=#800000]script[/color][color=#0000ff]>[/color] [color=#008000][/color] [color=#0000ff]<[/color][color=#800000]link[/color][color=#ff0000]type[/color][color=#0000ff]="text/css" [/color][color=#ff0000]rel[/color][color=#0000ff]="stylesheet" [/color][color=#ff0000]href[/color][color=#0000ff]="SyntaxHighlighter.css" />[/color] [color=#0000ff]<[/color][color=#800000]link[/color][color=#ff0000]href[/color][color=#0000ff]="style.css" [/color][color=#ff0000]rel[/color][color=#0000ff]="stylesheet" [/color][color=#ff0000]type[/color][color=#0000ff]="text/css" [/color][color=#ff0000]media[/color][color=#0000ff]="all" />[/color] [color=#0000ff]<[/color][color=#800000]script[/color][color=#ff0000]type[/color][color=#0000ff]="text/javascript" [/color][color=#ff0000]src[/color][color=#0000ff]="http://www.bbc.co.uk/cs/jst/mod/1/jst_core.v1.2.js">[/color][color=#0000ff][/color][color=#800000]script[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#800000]script[/color][color=#ff0000]type[/color][color=#0000ff]="text/javascript" [/color][color=#ff0000]src[/color][color=#0000ff]="http://www.bbc.co.uk/emp/simulcast/shCore.js">[/color][color=#0000ff][/color][color=#800000]script[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#800000]script[/color][color=#ff0000]type[/color][color=#0000ff]="text/javascript" [/color][color=#ff0000]src[/color][color=#0000ff]="http://www.bbc.co.uk/emp/simulcast/shBrushJScript.js">[/color][color=#0000ff][/color][color=#800000]script[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#800000]script[/color][color=#ff0000]type[/color][color=#0000ff]="text/javascript" [/color][color=#ff0000]src[/color][color=#0000ff]="http://www.bbc.co.uk/emp/simulcast/prototype.js">[/color][color=#0000ff][/color][color=#800000]script[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#800000]script[/color][color=#ff0000]type[/color][color=#0000ff]="text/javascript" [/color][color=#ff0000]src[/color][color=#0000ff]="http://www.bbc.co.uk/emp/simulcast/scriptaculous.js?load=effects">[/color][color=#0000ff][/color][color=#800000]script[/color][color=#0000ff]>[/color] [color=#0000ff][/color][color=#800000]head[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#800000]body[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#800000]div[/color][color=#ff0000]id[/color][color=#0000ff]="emp1" [/color][color=#ff0000]class[/color][color=#0000ff]="player" [/color][color=#ff0000]style[/color][color=#0000ff]="float:left">[/color] [color=#0000ff]<[/color][color=#800000]p[/color][color=#0000ff]>[/color]In order to see this content you need to have both [color=#0000ff]<[/color][color=#800000]a[/color][color=#ff0000]href[/color][color=#0000ff]="http://www.bbc.co.uk/webwise/askbruce/articles/browse/java_1.shtml" [/color][color=#ff0000]title[/color][color=#0000ff]="BBC Webwise article about enabling javascript">[/color]Javascript[color=#0000ff][/color][color=#800000]a[/color][color=#0000ff]>[/color] enabled and [color=#0000ff]<[/color][color=#800000]a[/color][color=#ff0000]href[/color][color=#0000ff]="http://www.bbc.co.uk/webwise/askbruce/articles/download/howdoidownloadflashplayer_1.shtml" [/color][color=#ff0000]title[/color][color=#0000ff]="BBC Webwise article about downloading">[/color]Flash[color=#0000ff][/color][color=#800000]a[/color][color=#0000ff]>[/color] installed. Visit [color=#0000ff]<[/color][color=#800000]a[/color][color=#ff0000]href[/color][color=#0000ff]="http://www.bbc.co.uk/webwise/">[/color]BBC[color=#ff0000] [/color]Webwise[color=#0000ff][/color][color=#800000]a[/color][color=#0000ff]>[/color] for full instructions[color=#0000ff][/color][color=#800000]p[/color][color=#0000ff]>[/color] [color=#0000ff][/color][color=#800000]div[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#800000]script[/color][color=#ff0000]type[/color][color=#0000ff]="text/javascript">[/color] dp.SyntaxHighlighter.HighlightAll([color=#800000]'onceCode'[/color]); [color=#0000ff]var[/color] width= [color=#ff0000]640[/color]; [color=#0000ff]var[/color] height= [color=#ff0000]395[/color]; [color=#0000ff]var[/color] playlist; [color=#0000ff]var[/color] config; [color=#0000ff]var[/color] revision; [color=#0000ff]function[/color] reload(url) { [color=#0000ff]var[/color] emp = [color=#0000ff]new[/color] embeddedMedia.Player(); emp.setWidth(width); emp.setHeight(height); emp.setDomId([color=#800000]"emp1"[/color]); emp.set([color=#800000]"config_settings_autoPlay"[/color],[color=#800000]"true"[/color]); playlist = [color=#800000]"http://www.bbc.co.uk/emp/simulcast/"[/color]+url+[color=#800000]".xml"[/color]; emp.setPlaylist(playlist); config = [color=#800000]"http://www.bbc.co.uk/emp/simulcast/config_"[/color]+url+[color=#800000]".xml"[/color]; emp.setConfig(config); emp.write(); updateEmbed(); } [color=#0000ff]function[/color] updateEmbed() { $([color=#800000]'codeWrap'[/color]).update([color=#800000]''[/color]); $([color=#800000]'embedCode'[/color]).update([color=#800000]"var emp = new embeddedMedia.Player();"[/color]+[color=#800000]"\n"[/color]+ [color=#800000]"emp.setWidth('"[/color]+width+[color=#800000]"');"[/color]+[color=#800000]"\n"[/color]+ [color=#800000]"emp.setHeight('"[/color]+height+[color=#800000]"');"[/color]+[color=#800000]"\n"[/color]+ [color=#800000]"emp.setPlaylist('"[/color]+playlist+[color=#800000]"');"[/color]+[color=#800000]"\n"[/color]+ [color=#800000]"emp.setConfig('"[/color]+config+[color=#800000]"');"[/color]+[color=#800000]"\n"[/color]+ [color=#800000]"emp.write();"[/color]); dp.SyntaxHighlighter.HighlightAll([color=#800000]'code'[/color]); } reload([color=#800000]"bbc_one_london"[/color]); [color=#008000][/color] [color=#0000ff][/color][color=#800000]script[/color][color=#0000ff]>[/color] [color=#0000ff][/color][color=#800000]body[/color][color=#0000ff]>[/color] [color=#0000ff][/color][color=#800000]html[/color][color=#0000ff]>[/color] I have to stress that this works pretty much perfectly for me, most of the time. This is where I come to my question: Every now and then, for example when the display refreshes, the embedded stream will try to buffer. If it takes a long time to buffer, when the video finally starts to play, it will pause again after about 30 secs and then I will get the BBC's "this content does not seem to be working" page. If this happens I then have to restart the Xibo client on the client machine in the hope that when it loads up again, it will connect properly. I can usually tell as soon as the client loads up whether or not it will continue to play without issue. If the video stream loads more or less straight away, it will continue to play without issue. If the stream takes a while to buffer before the video starts to play, it will cut out about 30 seconds into the feed and the client will have to be manually restarted. I hope this makes sense. Has anyone else had similar experiences? The main inconvenience is if there is noone there to manually restart the client then the screen will just sit with "this content isn't working properly", as the embedded html code has no way of knowing this has happened and won't auto refresh itself.
edie209 Posted March 5, 2013 Posted March 5, 2013 We are having exactly the same issue, some days it doesn't happen at all and then other days it happens loads bit of a PITA to be honest but for the moment I can't find a solution, mainly cos I just don't have the time.
danzig67 Posted March 5, 2013 Posted March 5, 2013 Do you have a work-a-round? Or do you just have to reload it manually the way I do? PITA is right!
edie209 Posted March 5, 2013 Posted March 5, 2013 What I have done is set the duration to 1800s that is my temporary fix, I keep promising myself some time to look into this and sort it out.
danzig67 Posted March 5, 2013 Posted March 5, 2013 What does the 1800s do to solve it? Is that just to ensure it doesn't refresh very often and thus keep the stream active? Unfortunately I have other layouts that are scheduled for break and lunch times and when the default display (i.e. the one im having issues with) tries to load back up, I get this problem. It really is a PITA because it looks really good when it works properly. I just wish I could tie down what is causing the issue, seen as it doesn't seem to be consistent! While this thread is active...does anyone know how to mute the volume on the embedded player? I know you could just tell me to mute the display, but during the break times mentioned above, the content being played has to have volume. So it would be good to have my news display silent and then when it auto-loads my break content, the volume is on and the content will be effective.
edie209 Posted March 5, 2013 Posted March 5, 2013 Sorry should have explained 1800 seconds for the display of the embedded object.
Crowmanuk Posted March 5, 2013 Posted March 5, 2013 That exact same thing was the reason I stopped using the bbc news feed, I think I resorted to using the sky news one which repeats all day long but at least it worked, I'm really looking forward to September now when we get full planet e-stream in and we can actually embed a tv feed as we will have a tv tuner built into it.
JanglyMark Posted April 18, 2013 Posted April 18, 2013 My script for watching BBC1 live no longer works... Please can someone update it for me...the nornal 'watch live' page is uses WAY much bandwidth... Script is as follows.... "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 BBC Webwise for full instructions dp.SyntaxHighlighter.HighlightAll('onceCode'); var width= 640; var height= 395; var volume= 100; 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_one_london");
Arthur Posted April 19, 2013 Posted April 19, 2013 My script for watching BBC1 live no longer works... It works fine for me when the HTML page is accessed through a web server. http://i.imgur.com/EaeJ04n.png Here's an alternate version if you want to give it a try? BBC Live Streams <br /> body { margin: 0px 0px 0px 0px; }<br /> src="http://www.bbc.co.uk/emp/10player.swf?revision=18269_21576" 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_one_london.xml&config=http://www.bbc.co.uk/emp/simulcast/config_bbc_one_london.xml">
vortex999 Posted May 3, 2013 Posted May 3, 2013 It works fine for me when the HTML page is accessed through a web server. Here's an alternate version if you want to give it a try? BBC Live Streams <br /> body { margin: 0px 0px 0px 0px; }<br /> src="http://www.bbc.co.uk/emp/10player.swf?revision=18269_21576" 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_one_london.xml&config=http://www.bbc.co.uk/emp/simulcast/config_bbc_one_london.xml"> This works really well, is there any way to point it to BBC news instead of BBC one?
Arthur Posted May 3, 2013 Posted May 3, 2013 is there any way to point it to BBC news instead of BBC one? To change to a different channel, all you need to do is edit the 'flashvars' line. In your case, completely replace the line highlighted in red below (BBC One) with the one shown in blue (BBC News 24) listed under Channels. 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" [color="#FF0000"]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_one_london.xml&config=http://www.bbc.co.uk/emp/simulcast/config_bbc_one_london.xml">[/color] i.e. 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">
techie08 Posted August 13, 2013 Posted August 13, 2013 Does anyone know how to start this is full screen mode with me having to click on the full screen button?
monkeytennis Posted August 13, 2013 Posted August 13, 2013 I dont know if you can start in full screen but you can alter the height and width to match the resolution of your layout/screen so it pretty much is full screen that way. Just change the height and width in the code.
edie209 Posted August 13, 2013 Posted August 13, 2013 Not sure (I will check tomorrow) but I think there is a setting in the client config
glennda Posted August 13, 2013 Posted August 13, 2013 Not sure (I will check tomorrow) but I think there is a setting in the client config yup i think its in the client configuration app which gives the option to full screen - else there might be a switch to use.
Techie-v2 Posted October 14, 2013 Posted October 14, 2013 Does anyone know if it is possible to get the subtitles working using a feed like this. I can see a way to turn them on on the life feed webpage so im guessing they are only broadcast on the over the air version, not the internet feed. I cant see a way on the player controls, just wondering if anyone know a way to turn them on in the code? Thanks
zbjsy Posted October 30, 2013 Posted October 30, 2013 Does anyone know if it is possible to get the subtitles working using a feed like this. I can see a way to turn them on on the life feed webpage so im guessing they are only broadcast on the over the air version, not the internet feed. I cant see a way on the player controls, just wondering if anyone know a way to turn them on in the code? Thanks did you manage to get subtitles to show ?
Techie-v2 Posted October 30, 2013 Posted October 30, 2013 No not yet, havent really looked at it for a while to be honest....
zbjsy Posted October 30, 2013 Posted October 30, 2013 can you share the page where subtitles is working and i will take a look
Techie-v2 Posted October 30, 2013 Posted October 30, 2013 Sorry i must have miss typed above, i meant i cant see a way on the web page.
fairm010 Posted November 12, 2013 Posted November 12, 2013 (edited) Having sooo many issues getting the BBC livestream to work. Had it working but the Server that was running this died . Can someone please send me their code? Thanks, Matt. Edit: I have this site which may be quite useful. I have literally no idea what I'm doing with it! http://www.bbc.co.uk/emp/simulcast/ Edited November 12, 2013 by fairm010
edie209 Posted November 12, 2013 Posted November 12, 2013 We have it working and it is very reliable, I will get you the code we are using tomorrow. If I haven't posted it by mid morning nag me cos we are really busy at the moment
fairm010 Posted November 13, 2013 Posted November 13, 2013 This is why I love Edugeek. Someone is always there to help Matt
edie209 Posted November 13, 2013 Posted November 13, 2013 Here you go, and I remembered first thing too BBC Live Streams <br /> body { margin: 0px 0px 0px 0px; }<br /> src="http://www.bbc.co.uk/emp/10player.swf?revision=18269_21576" width="370" height="245" 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"> 1
Recommended Posts