the broadcast stops after a while

burak guder

Member
After starting the broadcast via api, when nobody is watching, it stops after a while and it is necessary to start it again with the startup service.

Even if nobody is watching the broadcast, I want it to continue to be shot over rtsp. How can I do that ?
 

Max

Administrator
Staff member
Good day.
You can increase RTSP activity timeout, for example, to 24 hours:
Code:
rtsp_activity_timer_timeout=86400000
In this case, RTSP will not stop unless there are no any subscribers in last 24 hours. But, if you need to stop the stream, you should use REST API
Code:
POST /rest-api/rtsp/terminate HTTP/1.1
Host: wcs:8081
Content-Type: application/json
 
{
    "uri":"rtsp://server/stream"
}
 
Top