stream/startRecording event

Hello, any time a client SDK publishes a stream (regardless if it's recording to not) WCS raises an event - usually it's StreamStatusEvent. However, when issuing a record command for a stream using rest-api - no event occurs. How do I know when a recording command has been issued on a stream? All I get is an INFO message stating that a RestApiRouter handleRequest method has been executed.
Thanks,
P
 

Max

Administrator
Staff member
Good day.
You can check if a stream is recording by /stream/find REST API query. It will return record: true for stream which is recording now.
 

Max

Administrator
Staff member
We raised the ticket WCS-3598 for this feature request. Note that it may take a time, so /stream/find REST API polling seems to be a quick workaround.
 

Max

Administrator
Staff member
A question though: is the "stoppedRecording" event raised on server stopped receiving media content or when a *.tmp file has been merged/appended to the *.mp4 file?
The stoppedRecording event is raised when recording is stopped by REST API or by media stream stopping, but before the resulting file is written because file write operation is asyncronous and relatively slow.
 
Top