[Live-devel] Handing the disconnection of LiveSource in RTSP server

林柏昇 personlin at edimax.com.tw
Wed Jun 15 19:12:50 PDT 2022


Hi Ross,
It seems that nothing notifies the media server session or RTSP server when
the source is closing by itself.
Is it the only way to notify the RTSP server by myself at the function of
detecting the disconnection?

My debug log: (some logs are format by printf("%s %s, %d, %s\n", __FILE__,
__FUNCTION__, __LINE__, "...");)
source disconnect!! should happen some rtsp path restart!
remove, 138, remove liveMedia15
FramedSource.cpp handleClosure, 107, closure
FramedSource.cpp handleClosure, 101, closure
FramedSource.cpp handleClosure, 107, closure
FramedSource.cpp handleClosure, 101, closure
FramedSource.cpp handleClosure, 107, closure
FramedSource.cpp handleClosure, 101, closure
FramedSource.cpp handleClosure, 107, closure
MediaSink.cpp onSourceClosure, 98, ...
remove, 138, remove liveMedia22
remove, 138, remove liveMedia18
FramedSource.cpp stopGettingFrames, 117, ...
FramedSource.cpp doStopGettingFrames, 125, ...
FramedSource.cpp stopGettingFrames, 117, ...
FramedSource.cpp doStopGettingFrames, 125, ...
FramedSource.cpp stopGettingFrames, 117, ...
FramedSource.cpp doStopGettingFrames, 125, ...
FramedSource.cpp stopGettingFrames, 117, ...
remove, 138, remove liveMedia23
FramedSource.cpp stopGettingFrames, 117, ...
FramedSource.cpp doStopGettingFrames, 125, ...
FramedSource.cpp stopGettingFrames, 117, ...
FramedSource.cpp doStopGettingFrames, 125, ...
FramedSource.cpp stopGettingFrames, 117, ...
FramedSource.cpp ~FramedSource, 35, destructor
remove, 138, remove liveMedia17
remove, 138, remove liveMedia16
remove, 138, remove liveMedia15
FramedSource.cpp ~FramedSource, 35, destructor
FramedSource.cpp ~FramedSource, 35, destructor
## STREAMD - [1767:LiveSource.cpp:64:420]: live source /tmp/ipc-video-0-0
closed, fd=-1
FramedSource.cpp ~FramedSource, 35, destructor

林柏昇 <personlin at edimax.com.tw> 於 2022年6月15日 週三 下午2:53寫道:

> Hi Ross,
> Sure, If it could do.
> They are now separated into two different sources, and the audio channel
> may also be bound to other ServerMediaSession.
> We don't want to impact other ServerMediaSession which are not related to
> disconnection LiveSource at all.
>
> Best Regards,
>
> Person Lin
>
> IoT BU/ R&D Div.
> EDIMAX Technology Co., Ltd.
> Tel: 886-2-7739-6888 ext.6957
>
>
> Ross Finlayson <finlayson at live555.com> 於 2022年6月15日 週三 下午2:06寫道:
>
>>
>>
>> > On Jun 14, 2022, at 10:12 PM, 林柏昇 <personlin at edimax.com.tw> wrote:
>> >
>> > Hi Ross,
>> > To continus this issue.
>> > Our server media session has two LiveSources, that one is a video, and
>> another is audio.
>> > The disconnection occurred by the video device, so the audio channel is
>> fine.
>> > Regarding this situation, the RTSP server doesn't disconnect all
>> clients well due to any source being alive.
>> > Do you have suggestions for our application?
>> > If we want any live source is disconnected, we want to drop all clients.
>>
>> Therefore, if you find that you need to close the video source object, I
>> suggest that you also close the audio source object.
>>
>>
>> Ross Finlayson
>> Live Networks, Inc.
>> http://www.live555.com/
>>
>>
>> _______________________________________________
>> live-devel mailing list
>> live-devel at lists.live555.com
>> http://lists.live555.com/mailman/listinfo/live-devel
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20220616/8a4d82a3/attachment.htm>


More information about the live-devel mailing list