[Live-devel] Re: [vlc-devel] RTSP trickplay support
Matthew Romaine
Matthew.Romaine at jp.sony.com
Wed Dec 15 16:35:41 PST 2004
Hi Ross,
In RTSPClient::createScaleString(float scale), you check to see if
scale == 1.0, and as it's the default value, don't put "Scale: " in
the header. However, this seems to prevent a player from returning to
normal speed after having used a different scale value than 1.0. Since
there doesn't seem to be a way to send incremental changes to scale,
either removing the default check (and hence always send a Scale: in
the header), or maintain an internal state are two resolutions I can
come up with.
Could you check into this?
Thanks,
Matt
On 2004/12/15, at 14:43, Ross Finlayson wrote:
>
>> Changing the scale by calling ::playMedia[Sub]Session() seems to work
>> but subsequent calls to confirm the change via
>> Media[Sub]Session::scale() continue to return 1.0; I poked around and
>> can't find where it's being updated. I'm doing it through the VLC
>> livedotcom.cpp wrapper, and I've confirmed the "OK" response, and
>> from what I can tell the packets are being sent as expected. Where
>> is fScale being reset by the respective
>> *AudioFileServerMedia[Sub]Session?
>
> Matt,
>
> This is done in "RTSPClient::parseScaleHeader()" (in
> "liveMedia/RTSPClient.cpp"). I.e., the RTSP client code sets the
> field based upon the "Scale:" header that the server sends back in the
> "PLAY" response. (This is not necessarily the same as the value that
> the client specified in the "Scale:" header in the "PLAY" *request*.)
>
>
> Ross Finlayson
> LIVE.COM
> <http://www.live.com/>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live.com
> http://lists.live.com/mailman/listinfo/live-devel
More information about the live-devel
mailing list