[Live-devel] Question about trick play, server side
Ross Finlayson
finlayson at live555.com
Tue Nov 30 20:32:16 PST 2010
>I'm new at live555, i read doxygen references and make some tests to
>start understanding how it works.
>Now i plan something to do, i think simple, I want to stream a video
>file (.mpg) on demand, but with one feature... I want to specify the
>duration to stream in seconds, or make it an infinite loop.
This is something that the *client* requests (using the RTSP
protocol). It does not require any special support from the server.
I.e., our existing, unmodified server code can do this.
>So, suppose I have a video of 10 mins, I want to stream on demand
>only 1 min...
This is easy to do from your RTSP client (and, as I noted above,
without requiring any modification to server code). Note, for
example, how the "openRTSP" demo application (a RTSP client)
implements the "-s <initial-seek-time>" and "-d <duration>" options.
> or make it an infinite loop, so when 10 mins are streamed to a
>client, it must restart from 0 again.
Again, this is easy to do - from the client. Note, for example, how
"openRTSP" implements the "-c" option.
See <http://www.live555.com/openRTSP/>, and the "openRTSP" source
code (in "testProgs/playCommon.cpp").
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list