Mixer recordings

Arif Butt

Member
Hi,

we are using mixer recording for the video chat application, we would like to find out that is there a way to automatically start the mixer recording at the mixer creation time? or is there any method available to check that if the mixer has started the recording file by using any client side or server API to ensure that the recording is being done?

Thanks
AB
 

Max

Administrator
Staff member
Good day.
we are using mixer recording for the video chat application, we would like to find out that is there a way to automatically start the mixer recording at the mixer creation time
You can record mixer streams automatically with the following parameter in flashphoner.properties file
Code:
record_mixer_streams=true[/ICODE]
[QUOTE="Arif Butt, post: 26755, member: 6193"]
or is there any method available to check that if the mixer has started the recording file by using any client side or server API to ensure that the recording is being done?
[/QUOTE]
There is a REST query /recorder/find_all which returns a list of recordings on server containing file name and media session Id per each recording, for example
[CODE]
[
    {
        "fileName": "mixer1-1563776083752-{endTime}.mp4",
        "mediaSessionId": "5a072377-73c1-4caf-abd3"
    }
]
So you can find a mixer output stream media session ID by /mixer/find_all REST query
Code:
[
  {
    "localMediaSessionId": "e2fa5c8b-16f3-4917-9d5f-557dde75db07",
    "localStreamName": "m1",
    "uri": "mixer://m1",
    ...
  }
]
then check if this session Id is in /recorder/find_all results.
 
Top