[Live-devel] RTSPClientSession and Range: header?

Brett Granger bgranger at verivue.com
Thu Feb 14 08:04:02 PST 2008


I have a question about the RTSPServer::RTSPClientSession class with 
regards to the Range: header.

In the RTSP 1.0 RFC (2326), under the PLAY request it says:
"If no range is specified in the request, the current position is 
returned in the reply."  It's not entirely clear whether this applies 
only to on-demand streams.  Regardless, I interpret this to mean that if 
there is a PLAY request with no range header, the response will still 
have a range header indicating the current position?

However, in the RTSPClientSession class, there is a comment in the 
handleCmd_PLAY() method that states "Because we didn't see a Range: 
header, don't send one back".

I'm trying to figure out ways in which I might determine what the 
current position in an MPEG-2 TS stream is (e.g. VLC doesn't currently 
do this), and one thought that occurred to me was to issue a PLAY 
request with no Range or Scale header .  If there is an index file for 
the TS, it seems like this should be feasible, particularly with the 
recent getNormalPlayTime method?

Thanks for any thoughts,
--Brett



More information about the live-devel mailing list