[Live-devel] RTCP Bye in PassiveServerMediaSession
Brian Marete
bgmarete at gmail.com
Thu Oct 16 07:29:15 PDT 2008
On Thu, Oct 16, 2008 at 6:17 AM, Ross Finlayson <finlayson at live555.com> wrote:
>
>> The behavior I expect is that at the end of the stream, when
>> stopPlaying() is called on both sinks, live555 should send and RTCP
>> Bye packet, causing MPlayer to exit.
>
> No, that's not what the code does. When the code reaches the end of the
> input file, it reads/streams it again starting from the beginning. During
> this whole time, the output (network) stream remains intact, so no RTCP
> "BYE" ever gets sent.
>
> I.e., the code runs in a loop, reading/streaming the same file(s) over and
> over again.
>
>> What, in the API, should I do to force an RTCP bye packet to be sent
>> after the sinks are closed?
>
> In the current code, the (RTP)Sinks never get closed! (See above.)
>
> However, if you wanted to cause a RTCP "BYE" packet to get sent, then the
> way to do this would be to call "Medium::close()" on the "RTCPInstance"
> object.
>
Thanks Ross. But if I do the above, do I have to restart networking?
That is, are the sinks and groupsocks still usable after this? And the
Server Media Session? In other words, once I do the above, what else
do I have to do to clean up in rebuild again in preparation of
streaming the next file?
--
B. Gitonga Marete
Tel: +254-722-151-590
More information about the live-devel
mailing list