Question
Preventing a NetStream.Buffer.Flush
I need to buffer a large amount of (non-live) streaming
content in the background while the user is distracted with
something else. So far, the only way I've found make the NetStream
(or the FLVPlayback control) buffer is to put it in a "play" state.
Doing that and setting the bufferTime to a really high value is a
partial solution.
The problem is, once it either has the specified amount buffered or has the entire thing buffered, it starts playing. But I need it to not start playing until the user is ready for it. But setting it to anything other than the play state, including pausing it, flushes the buffer! (I can see why it might be good for a stop to flush the buffer. A PAUSE should not flush the buffer...)
Is there any workaround to this? I've even tried canceling the NetStream.Buffer.Flush event, but of course it's not "cancelable." I'll take any bizarre hack anyone can come up with at this point!
The problem is, once it either has the specified amount buffered or has the entire thing buffered, it starts playing. But I need it to not start playing until the user is ready for it. But setting it to anything other than the play state, including pausing it, flushes the buffer! (I can see why it might be good for a stop to flush the buffer. A PAUSE should not flush the buffer...)
Is there any workaround to this? I've even tried canceling the NetStream.Buffer.Flush event, but of course it's not "cancelable." I'll take any bizarre hack anyone can come up with at this point!
