Jump to content

NerdPanda991

Members
  • Posts

    2
  • Joined

  • Last visited

Reputation

5 Neutral

About NerdPanda991

  1. 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.
  2. 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>
×
×
  • Create New...