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 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); | 971 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); |
972 return recv_codecs_; | 972 return recv_codecs_; |
973 } | 973 } |
974 | 974 |
975 RtpCapabilities WebRtcVoiceEngine::GetCapabilities() const { | 975 RtpCapabilities WebRtcVoiceEngine::GetCapabilities() const { |
976 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); | 976 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); |
977 RtpCapabilities capabilities; | 977 RtpCapabilities capabilities; |
978 capabilities.header_extensions.push_back( | 978 capabilities.header_extensions.push_back( |
979 webrtc::RtpExtension(webrtc::RtpExtension::kAudioLevelUri, | 979 webrtc::RtpExtension(webrtc::RtpExtension::kAudioLevelUri, |
980 webrtc::RtpExtension::kAudioLevelDefaultId)); | 980 webrtc::RtpExtension::kAudioLevelDefaultId)); |
981 capabilities.header_extensions.push_back( | |
982 webrtc::RtpExtension(webrtc::RtpExtension::kAbsSendTimeUri, | |
983 webrtc::RtpExtension::kAbsSendTimeDefaultId)); | |
984 if (webrtc::field_trial::FindFullName("WebRTC-Audio-SendSideBwe") == | 981 if (webrtc::field_trial::FindFullName("WebRTC-Audio-SendSideBwe") == |
985 "Enabled") { | 982 "Enabled") { |
986 capabilities.header_extensions.push_back(webrtc::RtpExtension( | 983 capabilities.header_extensions.push_back(webrtc::RtpExtension( |
987 webrtc::RtpExtension::kTransportSequenceNumberUri, | 984 webrtc::RtpExtension::kTransportSequenceNumberUri, |
988 webrtc::RtpExtension::kTransportSequenceNumberDefaultId)); | 985 webrtc::RtpExtension::kTransportSequenceNumberDefaultId)); |
989 } | 986 } |
990 return capabilities; | 987 return capabilities; |
991 } | 988 } |
992 | 989 |
993 int WebRtcVoiceEngine::GetLastEngineError() { | 990 int WebRtcVoiceEngine::GetLastEngineError() { |
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2561 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 2558 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
2562 const auto it = send_streams_.find(ssrc); | 2559 const auto it = send_streams_.find(ssrc); |
2563 if (it != send_streams_.end()) { | 2560 if (it != send_streams_.end()) { |
2564 return it->second->channel(); | 2561 return it->second->channel(); |
2565 } | 2562 } |
2566 return -1; | 2563 return -1; |
2567 } | 2564 } |
2568 } // namespace cricket | 2565 } // namespace cricket |
2569 | 2566 |
2570 #endif // HAVE_WEBRTC_VOICE | 2567 #endif // HAVE_WEBRTC_VOICE |
OLD | NEW |