[Live-devel] How to get the file size : RTSP client live555

Ross Finlayson finlayson at live555.com
Tue Oct 4 21:22:15 PDT 2011


> Is it possible for a RTSP client to find the size of the file

No, because a RTSP client (and the RTSP protocol in general) does not know anything about "files".  Instead, it knows about "streams".  A RTSP server *may* choose to transmit its streams by reading data from files, but it doesn't have to; the stream data could come from other sources.

What a RTSP client can know, however, is the start and end time of a stream - *provided that* the stream has a known end time.  You can find these values using the functions "MediaSession::playStartTime()" and "MediaSession::playEndTime()".


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111004/869bc712/attachment.html>


More information about the live-devel mailing list