[Live-devel] shared audio stream

Lutz Fiebach lutz at fiebach.de
Wed Oct 23 05:37:36 PDT 2024


Hi,
yes, have use this option “reuseFirstSource”.
The problem is, we have 2 ServerMediaSession's with the same audio stream.
1. high resolution + audio
2. low resolution + audio
the option “reuseFirstSource” is active for both.
All 3 streams, 2 x video and 1 x audio are own FramedSources


________________________________
Von: Lutz Fiebach <lutz at fiebach.de>
Gesendet: Mittwoch, 23. Oktober 2024 09:22
An: live-devel at lists.live555.com <live-devel at lists.live555.com>
Betreff: shared audio stream

Hello live555 Team,

In our project we use a single mono stream which we play out with two different video streams via RTSP.
If a client connects and disconnects stream 0 and then immediately connects stream 1, the RTSP server
recognizes after a short time that stream 0 has been disconnected and terminates the video but also the audio stream.

I think this happens because it was the last user of stream 0 and the RTSP server is not aware that the audio stream is still being used by another channel.

Do we have a way to prevent this ?

Thanks and greetings

LuFi

https://github.com/Lu-Fi/prudynt-t/blob/master/src/RTSP.cpp#L75
https://github.com/Lu-Fi/prudynt-t/blob/master/src/IMPDeviceSource.cpp#L16

https://thingino.com/
https://github.com/themactep/thingino-firmware

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


More information about the live-devel mailing list