Skip to main content
Inspiring
September 2, 2011
Question

recording stream suddenly stops

  • September 2, 2011
  • 2 replies
  • 1157 views

Hello.

Our team is developing an application that allows users to communicate via their own camera, and make a record of all user's cameras that are in the same room. However we have come across an issue with our FMS 4 server. The issue is that sometimes when a user records all streams in a room at one point the recording process for particular streams suddenly stops but at the same time streaming is still working. For example, 2 users were broadcasting and one of them was recording their streams. At the end of the recording there were 2 flv files, however one of them was only a quarter of the actual length.

The logs for the damaged stream were:

- publish stream  at 10:48:38

- play stream  at 10:48:38

- record stream at 10:48:44

- unpublish stream at10:53:11

- stop stream at 10:53:12

Total length of the flv file should be more than 4 min but actually it is only 1 min 12 sec. Any ideas?

    This topic has been closed for replies.

    2 replies

    Participant
    March 6, 2015

    perconte2121‌, this is a pretty old thread, but just in case you are still stuck with the problem, the solution offered by ctdavids‌ here: https://forums.adobe.com/thread/865510 worked for me!

    The problem was that the recording stream was being assigned to a variable inside the function (that starts the recording) is enough to start the recording. But, within a few minutes, the variable would get garbage collected. This would make the recording to abruptly stop with no status notifications or error messages.

    To fix the issue, just put the variable inside of a global object, say,

    recordingStreamReference = Stream.get('recordingIsHere');

    strMaps[recordingStreamName] = recordingStreamReference;

    where strMaps is the global variable (Object), recordingStreamName is just a unique name for the recording, and the recordingStreamReference is the variable that has the recording stream.

    Hope this helps!

    Adobe Employee
    September 6, 2011

    Logs you have provided are little minimal but what i can conlude is that one of the publisher stopped publishing and hence the recording stopped.

    Inspiring
    September 6, 2011

    As I already wrote, both videos were streaming successfully till the end. But the saved recording for the one of the videos was only a quarter of the actual length.

    Adobe Employee
    September 6, 2011

    Do you see anything in application or core logs of FMS which can hint down the issue? Do you have logs when this issue happened? If yes - can you just share it here.