<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Times New Roman"><SPAN class=047253313-18122007>Hi
all,</SPAN></FONT></DIV>
<DIV><FONT face="Times New Roman"><SPAN
class=047253313-18122007></SPAN></FONT> </DIV>
<DIV><FONT face="Times New Roman"><SPAN class=047253313-18122007>From the LIVE
mailing lists I found that :-</SPAN></FONT></DIV>
<DIV><FONT face="Times New Roman"><SPAN
class=047253313-18122007></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=047253313-18122007><FONT face="Times New Roman"
color=#0000ff><EM>How does one obtain the current NPT (normal playing time) of a
<BR></EM></FONT><FONT face="Times New Roman" color=#0000ff><EM>received
packet? The closests thing I can find is <BR></EM></FONT><FONT
face="Times New Roman" color=#0000ff><EM>FramedSource::fPresentationTime, which
is in UTC format... o.0<BR><BR>You will need to use this presentation time, but
subtract from it the <BR>presentation time for the first-received RTP
packet. (You can also <BR>get the latter presentation time from the
"RTPInfo" header - i.e., <BR>from the field
"MediaSubsession.rtpInfo.timestamp").</EM></FONT></SPAN></FONT></DIV>
<DIV><FONT face="Times New Roman" color=#0000ff><SPAN
class=047253313-18122007><EM></EM></SPAN></FONT> </DIV>
<DIV><FONT face="Times New Roman"><SPAN class=047253313-18122007>Hence I try to
use the same logic to derive npt time in sec of latest RTP Packet
i.e</SPAN></FONT></DIV>
<DIV><FONT><SPAN class=047253313-18122007>
<P><FONT face="Times New Roman"><SPAN class=047253313-18122007> nptTime
</SPAN>= (((<SPAN
class=047253313-18122007>current_</SPAN>presentationTime.tv_sec<SPAN
class=047253313-18122007> </SPAN>-<SPAN
class=047253313-18122007> FirstReceivedPacket</SPAN><SPAN
class=047253313-18122007>_presentationTime</SPAN>.tv_sec)) +</FONT></P>
<P><FONT face="Times New Roman">(((<SPAN
class=047253313-18122007>current_</SPAN>presentationTime.tv_usec -
FirstReceivedPacket<SPAN
class=047253313-18122007>_presentationTime</SPAN>.tv_usec))/1000000));</FONT></P>
<P><SPAN class=047253313-18122007><FONT face="Times New Roman">But I am getting
very big no i.e 1197953352.0000000. Do i need to convert it to some
other format .</FONT></SPAN></P>
<P><SPAN class=047253313-18122007><FONT face="Times New Roman">I want to set the
start time in playMediaSession for seeking purpose using npt time so that client
should forward 2 sec from the current media timeline which i think is npt
.</FONT></SPAN></P>
<P><SPAN class=047253313-18122007><FONT
face="Times New Roman">Regards</FONT></SPAN></P>
<P><SPAN class=047253313-18122007></SPAN><SPAN class=047253313-18122007><FONT
face="Times New Roman">Nitin</FONT></SPAN></P></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=047253313-18122007><FONT color=#0000ff
size=2></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=047253313-18122007><FONT color=#0000ff
size=2></FONT> </DIV>
<DIV><BR></DIV></SPAN></FONT></BODY></HTML>