PDA

View Full Version : FCS zombie streams


Trevor Harrison
06-06-2005, 10:45 PM
I've been having problems with fcs (1.5 update 2) loosing recorded streams and other fun stuff, and in the process of narrowing the problem down, I've found a related problem that's cool (not).

FCS will accumulate zombie streams if you open and start recording and then stop playing without enough delay... ie:


var stream = Stream.get( new_unique_stream_name );
stream.record();
stream.play( some_live_published_stream_name );
// later on...
stream.play(false);
delete stream;


In my case, I can see that if my stream.play(false) gets called before the application.onStatus() announcing[1] the new stream gets called that the stream gets 'closed' but hangs around in the App Inspector as a zombie stream with no name, no time, etc.

However, if you look in the streams directory, you can see the .FLV file still growing in size as its still recording data.


If anyone is interested, I can provide a main.asc and a client.fla to show this problem.

-Trevor



Note 1:
Trace()ing the info passed to app.onStatus gives:

Good:
app.onStatus: NetStream.Record.Start: Recording archive/newstream70.
app.onStatus: NetStream.Publish.Start: Publishing archive/newstream70.
app.onStatus: NetStream.Play.Reset: Playing and resetting clients/tester1/rx.
app.onStatus: NetStream.Play.Start: Started playing clients/tester1/rx.
Client.stopCut: archive/newstream70
app.onStatus: NetStream.Unpublish.Success: archive/newstream70 is now unpublished.
app.onStatus: NetStream.Play.Stop: Stopped playing clients/tester1/rx.


Bad:
app.onStatus: NetStream.Record.Start: Recording archive/newstream71.
app.onStatus: NetStream.Publish.Start: Publishing archive/newstream71.
app.onStatus: NetStream.Unpublish.Success: archive/newstream71 is now unpublished.
app.onStatus: NetStream.Play.Reset: Playing and resetting clients/tester1/rx.
app.onStatus: NetStream.Play.Start: Started playing clients/tester1/rx.