OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 // From third_party/libjingle/source/talk/app/webrtc/mediaconstraintsinterface.c
c | 88 // From third_party/libjingle/source/talk/app/webrtc/mediaconstraintsinterface.c
c |
89 // Audio constraints. | 89 // Audio constraints. |
90 // const char kExtendedFilterEchoCancellation[] = "googEchoCancellation2"; // du
plicate k-name | 90 // const char kExtendedFilterEchoCancellation[] = "googEchoCancellation2"; // du
plicate k-name |
91 const char kDAEchoCancellation[] = "googDAEchoCancellation"; | 91 const char kDAEchoCancellation[] = "googDAEchoCancellation"; |
92 // const char kNoiseSuppression[] = "googNoiseSuppression"; // duplicate k-name | 92 // const char kNoiseSuppression[] = "googNoiseSuppression"; // duplicate k-name |
93 // const char kExperimentalNoiseSuppression[] = "googNoiseSuppression2"; // dupl
icate k-name | 93 // const char kExperimentalNoiseSuppression[] = "googNoiseSuppression2"; // dupl
icate k-name |
94 // const char kHighpassFilter[] = "googHighpassFilter"; // duplicate k-name | 94 // const char kHighpassFilter[] = "googHighpassFilter"; // duplicate k-name |
95 // const char kTypingNoiseDetection[] = "googTypingNoiseDetection"; // duplicate
k-name | 95 // const char kTypingNoiseDetection[] = "googTypingNoiseDetection"; // duplicate
k-name |
96 // const char kAudioMirroring[] = "googAudioMirroring"; // duplicate k-name | 96 // const char kAudioMirroring[] = "googAudioMirroring"; // duplicate k-name |
97 const char kAecDump[] = "audioDebugRecording"; | |
98 | 97 |
99 // Google-specific constraint keys for a local video source (getUserMedia). | 98 // Google-specific constraint keys for a local video source (getUserMedia). |
100 const char kNoiseReduction[] = "googNoiseReduction"; | 99 const char kNoiseReduction[] = "googNoiseReduction"; |
101 | 100 |
102 // Constraint keys for CreateOffer / CreateAnswer defined in W3C specification. | 101 // Constraint keys for CreateOffer / CreateAnswer defined in W3C specification. |
103 const char kOfferToReceiveAudio[] = "OfferToReceiveAudio"; | 102 const char kOfferToReceiveAudio[] = "OfferToReceiveAudio"; |
104 const char kOfferToReceiveVideo[] = "OfferToReceiveVideo"; | 103 const char kOfferToReceiveVideo[] = "OfferToReceiveVideo"; |
105 const char kVoiceActivityDetection[] = "VoiceActivityDetection"; | 104 const char kVoiceActivityDetection[] = "VoiceActivityDetection"; |
106 const char kIceRestart[] = "IceRestart"; | 105 const char kIceRestart[] = "IceRestart"; |
107 // Google specific constraint for BUNDLE enable/disable. | 106 // Google specific constraint for BUNDLE enable/disable. |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 } else if (constraint.m_name.equals(kGoogArrayGeometry)) { | 305 } else if (constraint.m_name.equals(kGoogArrayGeometry)) { |
307 result.googArrayGeometry.setExact(constraint.m_value); | 306 result.googArrayGeometry.setExact(constraint.m_value); |
308 } else if (constraint.m_name.equals(kGoogHighpassFilter)) { | 307 } else if (constraint.m_name.equals(kGoogHighpassFilter)) { |
309 result.googHighpassFilter.setExact(toBoolean(constraint.m_value)); | 308 result.googHighpassFilter.setExact(toBoolean(constraint.m_value)); |
310 } else if (constraint.m_name.equals(kGoogTypingNoiseDetection)) { | 309 } else if (constraint.m_name.equals(kGoogTypingNoiseDetection)) { |
311 result.googTypingNoiseDetection.setExact(toBoolean(constraint.m_valu
e)); | 310 result.googTypingNoiseDetection.setExact(toBoolean(constraint.m_valu
e)); |
312 } else if (constraint.m_name.equals(kGoogAudioMirroring)) { | 311 } else if (constraint.m_name.equals(kGoogAudioMirroring)) { |
313 result.googAudioMirroring.setExact(toBoolean(constraint.m_value)); | 312 result.googAudioMirroring.setExact(toBoolean(constraint.m_value)); |
314 } else if (constraint.m_name.equals(kDAEchoCancellation)) { | 313 } else if (constraint.m_name.equals(kDAEchoCancellation)) { |
315 result.googDAEchoCancellation.setExact(toBoolean(constraint.m_value)
); | 314 result.googDAEchoCancellation.setExact(toBoolean(constraint.m_value)
); |
316 } else if (constraint.m_name.equals(kAecDump)) { | |
317 result.googAecDump.setExact(toBoolean(constraint.m_value)); | |
318 } else if (constraint.m_name.equals(kNoiseReduction)) { | 315 } else if (constraint.m_name.equals(kNoiseReduction)) { |
319 result.googNoiseReduction.setExact(toBoolean(constraint.m_value)); | 316 result.googNoiseReduction.setExact(toBoolean(constraint.m_value)); |
320 } else if (constraint.m_name.equals(kOfferToReceiveAudio)) { | 317 } else if (constraint.m_name.equals(kOfferToReceiveAudio)) { |
321 result.offerToReceiveAudio.setExact(constraint.m_value); | 318 result.offerToReceiveAudio.setExact(constraint.m_value); |
322 } else if (constraint.m_name.equals(kOfferToReceiveVideo)) { | 319 } else if (constraint.m_name.equals(kOfferToReceiveVideo)) { |
323 result.offerToReceiveVideo.setExact(constraint.m_value); | 320 result.offerToReceiveVideo.setExact(constraint.m_value); |
324 } else if (constraint.m_name.equals(kVoiceActivityDetection)) { | 321 } else if (constraint.m_name.equals(kVoiceActivityDetection)) { |
325 result.voiceActivityDetection.setExact(toBoolean(constraint.m_value)
); | 322 result.voiceActivityDetection.setExact(toBoolean(constraint.m_value)
); |
326 } else if (constraint.m_name.equals(kIceRestart)) { | 323 } else if (constraint.m_name.equals(kIceRestart)) { |
327 result.iceRestart.setExact(toBoolean(constraint.m_value)); | 324 result.iceRestart.setExact(toBoolean(constraint.m_value)); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 537 |
541 WebMediaConstraints create() | 538 WebMediaConstraints create() |
542 { | 539 { |
543 WebMediaConstraints constraints; | 540 WebMediaConstraints constraints; |
544 constraints.initialize(); | 541 constraints.initialize(); |
545 return constraints; | 542 return constraints; |
546 } | 543 } |
547 | 544 |
548 } // namespace MediaConstraintsImpl | 545 } // namespace MediaConstraintsImpl |
549 } // namespace blink | 546 } // namespace blink |
OLD | NEW |