| 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 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2529 rtp_header_parser_->DeregisterRtpHeaderExtension( | 2529 rtp_header_parser_->DeregisterRtpHeaderExtension( |
| 2530 kRtpExtensionAbsoluteSendTime); | 2530 kRtpExtensionAbsoluteSendTime); |
| 2531 if (enable && | 2531 if (enable && |
| 2532 !rtp_header_parser_->RegisterRtpHeaderExtension( | 2532 !rtp_header_parser_->RegisterRtpHeaderExtension( |
| 2533 kRtpExtensionAbsoluteSendTime, id)) { | 2533 kRtpExtensionAbsoluteSendTime, id)) { |
| 2534 return -1; | 2534 return -1; |
| 2535 } | 2535 } |
| 2536 return 0; | 2536 return 0; |
| 2537 } | 2537 } |
| 2538 | 2538 |
| 2539 void Channel::EnableSendPlayoutDelayLimit(int id) { |
| 2540 int ret = _rtpRtcpModule->RegisterSendRtpHeaderExtension( |
| 2541 kRtpExtensionPlayoutDelay, id); |
| 2542 RTC_DCHECK_EQ(0, ret); |
| 2543 } |
| 2544 |
| 2545 void Channel::EnableReceivePlayoutDelayLimit(int id) { |
| 2546 bool ret = rtp_header_parser_->RegisterRtpHeaderExtension( |
| 2547 kRtpExtensionPlayoutDelay, id); |
| 2548 RTC_DCHECK(ret); |
| 2549 } |
| 2550 |
| 2539 void Channel::EnableSendTransportSequenceNumber(int id) { | 2551 void Channel::EnableSendTransportSequenceNumber(int id) { |
| 2540 int ret = | 2552 int ret = |
| 2541 SetSendRtpHeaderExtension(true, kRtpExtensionTransportSequenceNumber, id); | 2553 SetSendRtpHeaderExtension(true, kRtpExtensionTransportSequenceNumber, id); |
| 2542 RTC_DCHECK_EQ(0, ret); | 2554 RTC_DCHECK_EQ(0, ret); |
| 2543 } | 2555 } |
| 2544 | 2556 |
| 2545 void Channel::EnableReceiveTransportSequenceNumber(int id) { | 2557 void Channel::EnableReceiveTransportSequenceNumber(int id) { |
| 2546 rtp_header_parser_->DeregisterRtpHeaderExtension( | 2558 rtp_header_parser_->DeregisterRtpHeaderExtension( |
| 2547 kRtpExtensionTransportSequenceNumber); | 2559 kRtpExtensionTransportSequenceNumber); |
| 2548 bool ret = rtp_header_parser_->RegisterRtpHeaderExtension( | 2560 bool ret = rtp_header_parser_->RegisterRtpHeaderExtension( |
| (...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3559 int64_t min_rtt = 0; | 3571 int64_t min_rtt = 0; |
| 3560 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3572 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
| 3561 0) { | 3573 0) { |
| 3562 return 0; | 3574 return 0; |
| 3563 } | 3575 } |
| 3564 return rtt; | 3576 return rtt; |
| 3565 } | 3577 } |
| 3566 | 3578 |
| 3567 } // namespace voe | 3579 } // namespace voe |
| 3568 } // namespace webrtc | 3580 } // namespace webrtc |
| OLD | NEW |