I want to implement a feature that tells the recording to stop at X minutes in my app.
The REST documentation has this endpoint:
However, i don’t know how to get the recording id from the session? I had a look at the return data from the REST call to start the session but it doesn’t return the recording id.
So the idea is, that anyone in the app can live stream, but i want to limit the max length of a recording to 30 minutes for storage preservation.
I initially thought the setting: OPENVIDU_RECORDING_AUTOSTOP_TIMEOUT would do it but after reading it a little more this only happens if the session is not active at the time during the value set here, but i want to make a custom api call to force the recording to stop.