Hello Kirupa Community,
I have a video player that i wish to stream and playback immediately on load, but it always downloads the entire flv file first before playback begins (which can be up to 30 seconds on a 15meg file). I am NOT using a Flash Media Server, but the video should be able to stream without a flash media server, correct?
Thanks in advance -b
relevant code:
uldr = new URLLoader();
uldr.addEventListener(Event.COMPLETE, xmlCompleteHandler);
uldr.load(new URLRequest(m_url));
var connection:NetConnection = new NetConnection();
connection.connect(null);
ns = new NetStream(connection);
ns.addEventListener(NetStatusEvent.NET_STATUS, onStatus);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAStatus);
ns.addEventListener(IOErrorEvent.IO_ERROR, onIOStatus);
ns.bufferTime = 1;