diff options
author | pwestin@webrtc.org <pwestin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2012-11-13 21:12:39 +0000 |
---|---|---|
committer | pwestin@webrtc.org <pwestin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2012-11-13 21:12:39 +0000 |
commit | 571a1c035be6b0afd7f357001bef775c51ec9364 (patch) | |
tree | eaf1fffb6234478b6aaca814106a4166990041ae /webrtc/modules/rtp_rtcp/interface | |
parent | 42aa10eba7c89dc0b089078faa8dfcadc68366c1 (diff) | |
download | webrtc-571a1c035be6b0afd7f357001bef775c51ec9364.tar.gz |
Enable paced sender.
Review URL: https://webrtc-codereview.appspot.com/965016
git-svn-id: http://webrtc.googlecode.com/svn/trunk@3089 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/modules/rtp_rtcp/interface')
-rw-r--r-- | webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h index 5836705e7f..b715c0d0a4 100644 --- a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h +++ b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h @@ -17,7 +17,8 @@ #include "modules/rtp_rtcp/interface/rtp_rtcp_defines.h" namespace webrtc { -// forward declaration +// Forward declarations. +class PacedSender; class RemoteBitrateEstimator; class RemoteBitrateObserver; class Transport; @@ -37,7 +38,8 @@ class RtpRtcp : public Module { intra_frame_callback(NULL), bandwidth_callback(NULL), audio_messages(NULL), - remote_bitrate_estimator(NULL) { + remote_bitrate_estimator(NULL), + paced_sender(NULL) { } /* id - Unique identifier of this RTP/RTCP module object * audio - True for a audio version of the RTP/RTCP module @@ -58,6 +60,8 @@ class RtpRtcp : public Module { * audio_messages - Telehone events. * remote_bitrate_estimator - Estimates the bandwidth available for a set of * streams from the same client. + * paced_sender - Spread any bursts of packets into smaller + * bursts to minimize packet loss. */ int32_t id; bool audio; @@ -71,6 +75,7 @@ class RtpRtcp : public Module { RtcpBandwidthObserver* bandwidth_callback; RtpAudioFeedback* audio_messages; RemoteBitrateEstimator* remote_bitrate_estimator; + PacedSender* paced_sender; }; /* * Create a RTP/RTCP module object using the system clock. @@ -345,13 +350,6 @@ class RtpRtcp : public Module { virtual WebRtc_Word32 DeregisterSendRtpHeaderExtension( const RTPExtensionType type) = 0; - /* - * Enable/disable traffic smoothing of sending stream. - */ - virtual void SetTransmissionSmoothingStatus(const bool enable) = 0; - - virtual bool TransmissionSmoothingStatus() const = 0; - /* * get start timestamp */ @@ -503,6 +501,9 @@ class RtpRtcp : public Module { const RTPFragmentationHeader* fragmentation = NULL, const RTPVideoHeader* rtpVideoHdr = NULL) = 0; + virtual void TimeToSendPacket(uint32_t ssrc, uint16_t sequence_number, + int64_t capture_time_ms) = 0; + /************************************************************************** * * RTCP |