Question
strange live stream recording issue
We are trying to record longer live streams on FMS 2.0
real-time by duplicating the stream on the FMS and recording plus
broadcasting at the same time. The recording seems to work but for
some strange reason FMS stops recording after the first 4-5 minutes
without throwing any error. Any idea what might be causing this?
Which settings should we check? Any assistance is highly
appreciated.
Here is the code portion that handles the recording ('play' is the stream that is published from the streaming client):
var stream = Stream.get('broadcast/'+chid+'/'+date.getTime());
stream.owner = this;
stream.onStatus = function(info) {
if (info.code == 'NetStream.Play.UnpublishNotify') {
application.saveVideo(this.owner, this.name, Stream.length(this.name));
}
};
stream.record();
stream.play('channel.'+chid);
Thank you.
Here is the code portion that handles the recording ('play' is the stream that is published from the streaming client):
var stream = Stream.get('broadcast/'+chid+'/'+date.getTime());
stream.owner = this;
stream.onStatus = function(info) {
if (info.code == 'NetStream.Play.UnpublishNotify') {
application.saveVideo(this.owner, this.name, Stream.length(this.name));
}
};
stream.record();
stream.play('channel.'+chid);
Thank you.
