OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void RegisterRtpStatisticsCallback(StreamDataCountersCallback* callback); | 198 void RegisterRtpStatisticsCallback(StreamDataCountersCallback* callback); |
199 StreamDataCountersCallback* GetRtpStatisticsCallback() const; | 199 StreamDataCountersCallback* GetRtpStatisticsCallback() const; |
200 | 200 |
201 uint32_t BitrateSent() const; | 201 uint32_t BitrateSent() const; |
202 | 202 |
203 void SetRtpState(const RtpState& rtp_state); | 203 void SetRtpState(const RtpState& rtp_state); |
204 RtpState GetRtpState() const; | 204 RtpState GetRtpState() const; |
205 void SetRtxRtpState(const RtpState& rtp_state); | 205 void SetRtxRtpState(const RtpState& rtp_state); |
206 RtpState GetRtxRtpState() const; | 206 RtpState GetRtxRtpState() const; |
207 | 207 |
| 208 int64_t LastTimestampTimeMs() const; |
| 209 void SendKeepAlive(uint8_t payload_type); |
| 210 |
208 protected: | 211 protected: |
209 int32_t CheckPayloadType(int8_t payload_type, RtpVideoCodecTypes* video_type); | 212 int32_t CheckPayloadType(int8_t payload_type, RtpVideoCodecTypes* video_type); |
210 | 213 |
211 private: | 214 private: |
212 // Maps capture time in milliseconds to send-side delay in milliseconds. | 215 // Maps capture time in milliseconds to send-side delay in milliseconds. |
213 // Send-side delay is the difference between transmission time and capture | 216 // Send-side delay is the difference between transmission time and capture |
214 // time. | 217 // time. |
215 typedef std::map<int64_t, int> SendDelayMap; | 218 typedef std::map<int64_t, int> SendDelayMap; |
216 | 219 |
217 size_t SendPadData(size_t bytes, const PacedPacketInfo& pacing_info); | 220 size_t SendPadData(size_t bytes, const PacedPacketInfo& pacing_info); |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 OverheadObserver* overhead_observer_; | 329 OverheadObserver* overhead_observer_; |
327 | 330 |
328 const bool send_side_bwe_with_overhead_; | 331 const bool send_side_bwe_with_overhead_; |
329 | 332 |
330 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); | 333 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); |
331 }; | 334 }; |
332 | 335 |
333 } // namespace webrtc | 336 } // namespace webrtc |
334 | 337 |
335 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ | 338 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ |
OLD | NEW |