[Live-devel] Calculating rtptime for RTSP/PLAY-Response "RTP-Info" header

Ross Finlayson finlayson at live555.com
Thu Aug 7 17:01:45 PDT 2008


>I'm specifically trying to work out how to create the "RTP-Info" 
>header in a RTSP/PLAY-Response.

Our server implementation does this automatically (see 
"RTSPServer.cpp", and search for "rtpInfo").  You shouldn't have to 
do anything yourself to generate this.

Similarly, at the client end, the information is filled in 
automatically - if you wish, you can just access the 
"MediaSubsession::rtpInfo" structure.  Most clients, however, will 
not need to access this structure directly.  Instead, if they wish to 
get the current 'normal play time' (NPT) for the stream, they can 
just call "MediaSubsession::getNormalPlayTime()", which uses the 
"rtpInfo" structure.

Also (as I have explained several times before), RTSP/RTP/RTCP 
clients (receivers) should rarely, if ever, need to look at RTP 
timestamps, sequence numbers, or RTCP packet data.  Our receiving 
code automatically uses this information itself, to give you a 
properly-synchronized presentation time for each incoming frame of 
data.
-- 

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/20080808/bae16a34/attachment.html>


More information about the live-devel mailing list