OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2013 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 "googAutoGainControl2"; | 43 "googAutoGainControl2"; |
44 const char MediaConstraintsInterface::kNoiseSuppression[] = | 44 const char MediaConstraintsInterface::kNoiseSuppression[] = |
45 "googNoiseSuppression"; | 45 "googNoiseSuppression"; |
46 const char MediaConstraintsInterface::kExperimentalNoiseSuppression[] = | 46 const char MediaConstraintsInterface::kExperimentalNoiseSuppression[] = |
47 "googNoiseSuppression2"; | 47 "googNoiseSuppression2"; |
48 const char MediaConstraintsInterface::kHighpassFilter[] = | 48 const char MediaConstraintsInterface::kHighpassFilter[] = |
49 "googHighpassFilter"; | 49 "googHighpassFilter"; |
50 const char MediaConstraintsInterface::kTypingNoiseDetection[] = | 50 const char MediaConstraintsInterface::kTypingNoiseDetection[] = |
51 "googTypingNoiseDetection"; | 51 "googTypingNoiseDetection"; |
52 const char MediaConstraintsInterface::kAudioMirroring[] = "googAudioMirroring"; | 52 const char MediaConstraintsInterface::kAudioMirroring[] = "googAudioMirroring"; |
53 const char MediaConstraintsInterface::kAecDump[] = "audioDebugRecording"; | |
54 | 53 |
55 // Google-specific constraint keys for a local video source (getUserMedia). | 54 // Google-specific constraint keys for a local video source (getUserMedia). |
56 const char MediaConstraintsInterface::kNoiseReduction[] = "googNoiseReduction"; | 55 const char MediaConstraintsInterface::kNoiseReduction[] = "googNoiseReduction"; |
57 | 56 |
58 // Constraint keys for CreateOffer / CreateAnswer defined in W3C specification. | 57 // Constraint keys for CreateOffer / CreateAnswer defined in W3C specification. |
59 const char MediaConstraintsInterface::kOfferToReceiveAudio[] = | 58 const char MediaConstraintsInterface::kOfferToReceiveAudio[] = |
60 "OfferToReceiveAudio"; | 59 "OfferToReceiveAudio"; |
61 const char MediaConstraintsInterface::kOfferToReceiveVideo[] = | 60 const char MediaConstraintsInterface::kOfferToReceiveVideo[] = |
62 "OfferToReceiveVideo"; | 61 "OfferToReceiveVideo"; |
63 const char MediaConstraintsInterface::kVoiceActivityDetection[] = | 62 const char MediaConstraintsInterface::kVoiceActivityDetection[] = |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ++*mandatory_constraints; | 122 ++*mandatory_constraints; |
124 return rtc::FromString(string_value, value); | 123 return rtc::FromString(string_value, value); |
125 } | 124 } |
126 if (constraints->GetOptional().FindFirst(key, &string_value)) { | 125 if (constraints->GetOptional().FindFirst(key, &string_value)) { |
127 return rtc::FromString(string_value, value); | 126 return rtc::FromString(string_value, value); |
128 } | 127 } |
129 return false; | 128 return false; |
130 } | 129 } |
131 | 130 |
132 } // namespace webrtc | 131 } // namespace webrtc |
OLD | NEW |