[Live-devel] hasBeenSynchronizedUsingRTCP()

Ross Finlayson finlayson at live555.com
Fri Jul 29 12:19:26 PDT 2011


On Jul 29, 2011, at 2:49 PM, Jeff Shanab wrote:

> I traced the code and I AM getting the packets….
>  
> But every rtp timestamp is 0!

Arggh, now you're talking about something completely different: RTP timestamps - which I specifically said you don't need to care about!!!

So, are you talking about "hasBeenSynchronizedUsingRTCP()", RTP timestamps (which you don't need to care about), or presentation times (which you do need to care about)?

But anyway, to summarize (and this will be my last posting on this thread):

1/ If you ever reach the code at line 380 of "liveMedia/RTPSource.cpp", then
	- You have received a RTCP "SR" packet, and 
	- "hasBeenSynchronizedUsingRTCP()" will always return True from then on, and
	- the presentation times for video (and audio, if present) should be correctly synchronized from then on.
2/ If "hasBeenSynchronizedUsingRTCP()" always returns False, then that must mean that you're not receiving any RTCP "SR" packets, which is probably because the server does not send any. But that doesn't really matter, unless you're receiving both a video stream and an audio stream (in which case they can never be synchronized).
3/ All you really care about is the presentation times, anyway.
4/ You absolutely do not need to 'hack' the supplied code.

Again, this will be my last posting on this thread.

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/20110729/062f8904/attachment.html>


More information about the live-devel mailing list