[Live-devel] OnDemandServerMediaSubsession with reusing issues

Igor Bukanov igor at mir2.org
Wed Mar 21 10:07:48 PDT 2007


On 21/03/07, Ross Finlayson <finlayson at live555.com> wrote:
> >Initially I thought that in a such case
> >OnDemandServerMediaSubsession::createNewStreamSource will be called
> >only once so I can perform on-demand initialization there. But it
> >turned out that it is called twice with the first time just to get sdp
> >lines.
>
> This is unfortunate, but unavoidable.  The SDP data has to be
> returned (in the RTSP "DESCRIBE" response) before streaming can
> begin, and unfortunately (for MPEG-4 video only) the SDP data
> includes configuration data that can only be obtained (in general) by
> reading part of the stream

I have no problems with that, for me the issue is the fact that
OnDemandServerMediaSubsession::sdpLines closes the stream instead of
keeping it opened to feed to clients later. As I wrote, I worked
around it, but that is not elegant and kind of defeats the purpose of
reuse flag.

Regards, Igor


More information about the live-devel mailing list