ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.75k stars 5.28k forks source link

Need a way to determine whether the stream has stopped coming on a SRS RTMP server due to network disconnection on publisher's end. #3892

Closed mrdixitjain closed 6 months ago

mrdixitjain commented 7 months ago

We have a specific need to utilize the SRS for streaming in conjunction with OBS or similar software. Presently, in the event of a publisher's connection drop during a stream, the default behavior of SRS involves buffering for end clients until the publish timeout occurs, ultimately terminating the stream.

Our objective is to implement a feature that displays a screen message such as "Publisher will rejoin shortly" upon a connection dropout. This aims to prevent end users from becoming frustrated and leaving the stream prematurely. Despite my investigation, I have not identified a straightforward method to achieve this.

Could someone kindly suggest a solution or provide guidance on how to implement this feature within the SRS framework?

gfloras commented 7 months ago

Good point, we also need that