-
Where are the Events????
I am trying to build a little Object-Oriented video player (for files, not server).
I have set up:
- a NetConnection object with .connect(null);
- a NetStream object within the connection, and called .play(url);
- a Video object, to display the stream;
I have put handlers to handle:
- NetConnection NetStatus events;
- NetStream NetStatus events;
- NetStream onMetaData events (through a custom class as client);
- NetStream onPlayStatus event (through a custom class as client);
Well, playing around with commands, I figured that VERY FEW events actually get dispatched.
Basically, when calling .pause() or .close(), on the stream, no event is fired.
When the file reaches the end, I see the following events being fired, and the movie plays over again:
NetStream.Buffer.Empty;
NetStream.Buffer.Flush;
NetStream.Play.Stop;
NetStream.Seek.Notify;
NetStream.Buffer.Empty;
NetStream.Buffer.Full;
What the hell is going on????
Why don't I see ANY pause/play event?
Why don't I see ANY complete event?
Why!!??????
-
Well I imagine all this stuff ain't available when working with files (vs server stream).
So I just have to manage the player state manually, and dispatch my events outside accordingly....