How to start a recording conference after Publish buttom clicked?

Lee

New Member
Hello,

Looking a way to start recording after room owner click PUBLISH button.
Everytime owner enters the room, it starts recording.
This is important because the invited user sometimes delays some minutes to enter. So I wanto to start recording after Publish button clicked by the owner.
I configured:
room.publish({
display: display,
constraints: constraints,
record: true,
receiveVideo: false,
receiveAudio: false
....
in the conference.js


I am using conference.html demo.

Thanks
 

Max

Administrator
Staff member
Good day.
A stream from every conference participant is written separately to its own recording file. You can merge all the files later as described here.
Also. you can use REST API to record participants streams as follows:
1. Find participant stream by name using REST API query
Code:
POST /rest-api/stream/find HTTP/1.1
Content-Type: application/json
{
"name":"stream1",
"published":true
}
This query returns stream data including mediaSessionId
2. Start recording using REST API query
Code:
POST /rest-api/stream/startRecording HTTP/1.1
Content-Type: application/json
{
"mediaSessionId":"stream1_mediaSessionId"
}
REST API for stream recording is described here in details.
 
Top