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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 } | 284 } |
285 | 285 |
286 // Set SequenceNumber, default is a random number. | 286 // Set SequenceNumber, default is a random number. |
287 void ModuleRtpRtcpImpl::SetSequenceNumber(const uint16_t seq_num) { | 287 void ModuleRtpRtcpImpl::SetSequenceNumber(const uint16_t seq_num) { |
288 rtp_sender_.SetSequenceNumber(seq_num); | 288 rtp_sender_.SetSequenceNumber(seq_num); |
289 } | 289 } |
290 | 290 |
291 bool ModuleRtpRtcpImpl::SetRtpStateForSsrc(uint32_t ssrc, | 291 bool ModuleRtpRtcpImpl::SetRtpStateForSsrc(uint32_t ssrc, |
292 const RtpState& rtp_state) { | 292 const RtpState& rtp_state) { |
293 if (rtp_sender_.SSRC() == ssrc) { | 293 if (rtp_sender_.SSRC() == ssrc) { |
| 294 SetStartTimestamp(rtp_state.start_timestamp); |
294 rtp_sender_.SetRtpState(rtp_state); | 295 rtp_sender_.SetRtpState(rtp_state); |
295 return true; | 296 return true; |
296 } | 297 } |
297 if (rtp_sender_.RtxSsrc() == ssrc) { | 298 if (rtp_sender_.RtxSsrc() == ssrc) { |
298 rtp_sender_.SetRtxRtpState(rtp_state); | 299 rtp_sender_.SetRtxRtpState(rtp_state); |
299 return true; | 300 return true; |
300 } | 301 } |
301 return false; | 302 return false; |
302 } | 303 } |
303 | 304 |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( | 993 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( |
993 StreamDataCountersCallback* callback) { | 994 StreamDataCountersCallback* callback) { |
994 rtp_sender_.RegisterRtpStatisticsCallback(callback); | 995 rtp_sender_.RegisterRtpStatisticsCallback(callback); |
995 } | 996 } |
996 | 997 |
997 StreamDataCountersCallback* | 998 StreamDataCountersCallback* |
998 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { | 999 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { |
999 return rtp_sender_.GetRtpStatisticsCallback(); | 1000 return rtp_sender_.GetRtpStatisticsCallback(); |
1000 } | 1001 } |
1001 } // namespace webrtc | 1002 } // namespace webrtc |
OLD | NEW |