OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 } | 923 } |
924 | 924 |
925 RtpCapabilities WebRtcVoiceEngine::GetCapabilities() const { | 925 RtpCapabilities WebRtcVoiceEngine::GetCapabilities() const { |
926 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); | 926 RTC_DCHECK(signal_thread_checker_.CalledOnValidThread()); |
927 RtpCapabilities capabilities; | 927 RtpCapabilities capabilities; |
928 capabilities.header_extensions.push_back(RtpHeaderExtension( | 928 capabilities.header_extensions.push_back(RtpHeaderExtension( |
929 kRtpAudioLevelHeaderExtension, kRtpAudioLevelHeaderExtensionDefaultId)); | 929 kRtpAudioLevelHeaderExtension, kRtpAudioLevelHeaderExtensionDefaultId)); |
930 capabilities.header_extensions.push_back( | 930 capabilities.header_extensions.push_back( |
931 RtpHeaderExtension(kRtpAbsoluteSenderTimeHeaderExtension, | 931 RtpHeaderExtension(kRtpAbsoluteSenderTimeHeaderExtension, |
932 kRtpAbsoluteSenderTimeHeaderExtensionDefaultId)); | 932 kRtpAbsoluteSenderTimeHeaderExtensionDefaultId)); |
933 if (webrtc::field_trial::FindFullName("WebRTC-SendSideBwe") == "Enabled") { | |
934 capabilities.header_extensions.push_back(RtpHeaderExtension( | |
935 kRtpTransportSequenceNumberHeaderExtension, | |
936 kRtpTransportSequenceNumberHeaderExtensionDefaultId)); | |
937 } | |
938 return capabilities; | 933 return capabilities; |
939 } | 934 } |
940 | 935 |
941 int WebRtcVoiceEngine::GetLastEngineError() { | 936 int WebRtcVoiceEngine::GetLastEngineError() { |
942 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 937 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
943 return voe_wrapper_->error(); | 938 return voe_wrapper_->error(); |
944 } | 939 } |
945 | 940 |
946 void WebRtcVoiceEngine::Print(webrtc::TraceLevel level, const char* trace, | 941 void WebRtcVoiceEngine::Print(webrtc::TraceLevel level, const char* trace, |
947 int length) { | 942 int length) { |
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2505 } | 2500 } |
2506 } else { | 2501 } else { |
2507 LOG(LS_INFO) << "Stopping playout for channel #" << channel; | 2502 LOG(LS_INFO) << "Stopping playout for channel #" << channel; |
2508 engine()->voe()->base()->StopPlayout(channel); | 2503 engine()->voe()->base()->StopPlayout(channel); |
2509 } | 2504 } |
2510 return true; | 2505 return true; |
2511 } | 2506 } |
2512 } // namespace cricket | 2507 } // namespace cricket |
2513 | 2508 |
2514 #endif // HAVE_WEBRTC_VOICE | 2509 #endif // HAVE_WEBRTC_VOICE |
OLD | NEW |