<!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: [Live-devel] Calculating rtptime for
RTSP/PLAY-Respons</title></head><body>
<blockquote type="cite" cite><font face="Verdana" size="-1"
color="#0000FF">I'm specifically trying to work out how to create the
"RTP-Info" header in a
RTSP/PLAY-Response.</font></blockquote>
<div><br></div>
<div>Our server implementation does this automatically (see
"RTSPServer.cpp", and search for "rtpInfo").
You shouldn't have to do anything yourself to generate this.</div>
<div><br></div>
<div>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.</div>
<div><br></div>
<div>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.</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>