[COLOR=black][FONT=Courier][URL=“http://www.willhill.premiumtv.co.uk/streaming/videoEventsList/startDate_20090415/endDate_20090416/submit.xml”][COLOR=blue]Hi Guys,
I am having a problem when trying to build a video player which connects to a rmtp stream. I have spent ages looking into this and still can’t see where i am going wrong. Here is my code
var video:Video = new Video(320, 240);
addChild(video);
var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
nc.connect("rtmp://fod/flv/2009_04/");
function onNetStatus(e:NetStatusEvent):void
{
trace(e.info.code)
}
I realise this won’t work as is but the problem i am having is that the NetStatusEvent doesn’t do anything. When i try to trace anything in the onNetStatus function nothing happens, no errors no nothing.
please can someone help me out here[/COLOR][/FONT][/COLOR]