OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); | 945 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); |
946 return recv_codecs_; | 946 return recv_codecs_; |
947 } | 947 } |
948 | 948 |
949 RtpCapabilities WebRtcVoiceEngine::GetCapabilities() const { | 949 RtpCapabilities WebRtcVoiceEngine::GetCapabilities() const { |
950 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); | 950 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); |
951 RtpCapabilities capabilities; | 951 RtpCapabilities capabilities; |
952 capabilities.header_extensions.push_back( | 952 capabilities.header_extensions.push_back( |
953 webrtc::RtpExtension(webrtc::RtpExtension::kAudioLevelUri, | 953 webrtc::RtpExtension(webrtc::RtpExtension::kAudioLevelUri, |
954 webrtc::RtpExtension::kAudioLevelDefaultId)); | 954 webrtc::RtpExtension::kAudioLevelDefaultId)); |
955 capabilities.header_extensions.push_back( | |
956 webrtc::RtpExtension(webrtc::RtpExtension::kAbsSendTimeUri, | |
957 webrtc::RtpExtension::kAbsSendTimeDefaultId)); | |
958 if (webrtc::field_trial::FindFullName("WebRTC-Audio-SendSideBwe") == | 955 if (webrtc::field_trial::FindFullName("WebRTC-Audio-SendSideBwe") == |
959 "Enabled") { | 956 "Enabled") { |
960 capabilities.header_extensions.push_back(webrtc::RtpExtension( | 957 capabilities.header_extensions.push_back(webrtc::RtpExtension( |
961 webrtc::RtpExtension::kTransportSequenceNumberUri, | 958 webrtc::RtpExtension::kTransportSequenceNumberUri, |
962 webrtc::RtpExtension::kTransportSequenceNumberDefaultId)); | 959 webrtc::RtpExtension::kTransportSequenceNumberDefaultId)); |
963 } | 960 } |
964 return capabilities; | 961 return capabilities; |
965 } | 962 } |
966 | 963 |
967 int WebRtcVoiceEngine::GetLastEngineError() { | 964 int WebRtcVoiceEngine::GetLastEngineError() { |
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2512 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 2509 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
2513 const auto it = send_streams_.find(ssrc); | 2510 const auto it = send_streams_.find(ssrc); |
2514 if (it != send_streams_.end()) { | 2511 if (it != send_streams_.end()) { |
2515 return it->second->channel(); | 2512 return it->second->channel(); |
2516 } | 2513 } |
2517 return -1; | 2514 return -1; |
2518 } | 2515 } |
2519 } // namespace cricket | 2516 } // namespace cricket |
2520 | 2517 |
2521 #endif // HAVE_WEBRTC_VOICE | 2518 #endif // HAVE_WEBRTC_VOICE |
OLD | NEW |