<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [vlc-devel] [RFC] VLC RTSP trickplay
support</title></head><body>
<blockquote type="cite" cite><font size="-1">I cooked up a patch for
live555 to export a method (hasScale()) which tells if the RTSP server
supports scale. The patch is to illustrate a possible approach. Maybe
Ross can comment on this approach and share his thoughts on how to
best handle this issue.</font></blockquote>
<div><br></div>
<div>No patch to the "LIVE555 Streaming Media" code should
be needed; the existing code can be used to do what you want - I
think.</div>
<div><br></div>
<div>After you call "RTSPClient::playMediaSession()", simply
call "scale()" on the "MediaSession" parameter;
this tells you the scale factor - if any - that the server
returned.</div>
<div><br></div>
<div>If "scale()" returns a value other than 1.0, then you
know that the server supports scaling (and that the stream will be at
the given scale).</div>
<div><br></div>
<div>If, however, "scale()" returns 1.0, then you know that
the server does not support scaling (or else you didn't request
it).</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>