I'm trying to view a stream that works in JW player, but not in my code. Code:
netcon.connect("rtmp://...");
netcon.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
netcon.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
netcon.addEventListener(IOErrorEvent.IO_ERROR,errorHandler);
netcon.addEventListener(AsyncErrorEvent.ASYNC_ERROR, errorHandler);
...
if (code == "NetConnection.Connect.Success") {
stream = new NetStream(netcon);
stream.client = this;
attachNetStream(stream);
smoothing = true;
deblocking = 1;
stream.play("flv:banana");
stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
stream.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, errorHandler);
stream.bufferTime = 2;
trace("stream is connecting");
It gets to the bottom block of code, but after that it gets stuck. White screen, stream not connecting, etc