[Live-devel] Handing the disconnection of LiveSource in RTSP server
Ross Finlayson
finlayson at live555.com
Sat Jun 11 22:06:06 PDT 2022
> On Jun 11, 2022, at 8:16 PM, 林柏昇 <personlin at edimax.com.tw> wrote:
>
> We want to make disconnections with all current RTSP clients who conducted to this source only if happens a disconnection between the source and our device.
> What can I do?
You can do this by closing (using “Medium::close()”) the input device (i.e., the instance of your “FramedSource” subclass). If you do this, then a RTCP “BYE” will get sent to each client that is currently streaming from the source. (Each client will usually handle this by closing its connection.)
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list