Posted this on the Video forum and as no responses trying here too.
Problem (F8 on2 VP6 encoded video):
Video streaming and want to jump to cuePoint that hasnt yet loaded. Onstatus returned object returns the NetStream.Seek.inValidTime message and then proceeds to give a Notify (seek successful..which it hasnt been) and Stop message...which obviously stops the flv playing. I dont want this to happen and cant see a way of preventing it! I just want it to capture the error and return a message to the user (whihc is easy) and allow the Video to continue playing ...which doesnt seem obvious
I have searched these forums and found various NetStream.seek() issues but non relating to this
CODE:
Any help appreciated as this doesnt seem to be documented anywhere!!Code:var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); my_video.attachVideo(stream_ns); stream_ns.play("video1.flv"); stream_ns.onStatus = function(infoObject:Object) { trace("NetStream.onStatus called: ("+getTimer()+" ms)"); trace("infoObject['code']:"+infoObject["code"]) /* for (var prop in infoObject) { trace("\t"+prop+":\t"+infoObject[prop]); } trace(""); */ if (infoObject["code"] == "NetStream.Seek.InvalidTime") { trace("not loaded yet") trace("last Valid:"+infoObject.message.details) //stream_ns.pause() } }; onMouseDown=function() { stream_ns.seek(40) } stop()
Cheers
Jon