I'm experiencing some strange behavior for which I can't find any documented knowledge.
Here's what is happening:
After calling the play() method, a netstream is paused when the NetStatus code is "NetStream.Play.Start". This disables the default behavior of automatically playing. Before resuming with either togglePause() OR resume(), perform a seek operation. When you attempt to resume with togglePause() or resume(), the netstream will not start playing again.
If you just immediately pause() then resume() without a seek() in between, it resumes fine.
Also, if you delay the initial pause by about 250ms, you can then seek() and subsequently resume() with no problems.
I posted a demo and source here: http://drinkspiller.cannonballinteractive.com/temp/ResumeAfterPauseAndSeek/
The code is the example code directly from the AS3 docs for NetStream with minor additions to handle the initial pause and handle the seek and resume buttons. There's not much to it.
Note that I am pausing by calling stream.seek(0) then stream.pause(); This ensures the first frame shows in the Video instance instead of nothing. The same behavior occurs without stream.seek(0) and only using stream.pause() to stop playback.
I've also tried delaying the call to startPaused(); until the buffer full event code but the behavior is the same.
Can anyone help me find a sensible workaround or confirm for me that this is a bug? Many thanks!