0644b1dc35
A new RtpRtcpClock interface has been added to rtp_rtcp_defines.h and provides time facilities used by an RTP/RTCP module. Also, NTP constants have been made public in the webrtc::ModuleRTPUtility namespace to make implementation of external clocks easier. An overloaded version of CreateRtpRtcp() accepts a clock argument. By default, if no clock is provided, the module uses the system clock (old ModuleRTPUtility implementation). Throughout the RTP/RTCP module code, calls to TickTime and ModuleRTPUtility time functions have been replaced with calls to time methods on a clock object. The following classes take a clock object in their constructor and hold a _clock field (either directly, or inherited from a parent): Bitrate ModuleRtpRtcpImpl RTCPReceiver RTCPSender RTPReceiver RTPSender RTPSenderAudio RTPSenderVideo Methods from other classes that do not derive any of those and require a time take an additional nowMS parameter, that should be the result of calling GetTimeInMS() on a clock object. Review URL: http://webrtc-codereview.appspot.com/268017 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1076 4adac7df-926f-26a2-2b94-8c16560cd09d |
||
---|---|---|
.. | ||
interface | ||
source | ||
test | ||
OWNERS |