| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const char MediaConstraintsInterface::kMaxHeight[] = "maxHeight"; | 43 const char MediaConstraintsInterface::kMaxHeight[] = "maxHeight"; |
| 44 const char MediaConstraintsInterface::kMinHeight[] = "minHeight"; | 44 const char MediaConstraintsInterface::kMinHeight[] = "minHeight"; |
| 45 const char MediaConstraintsInterface::kMaxFrameRate[] = "maxFrameRate"; | 45 const char MediaConstraintsInterface::kMaxFrameRate[] = "maxFrameRate"; |
| 46 const char MediaConstraintsInterface::kMinFrameRate[] = "minFrameRate"; | 46 const char MediaConstraintsInterface::kMinFrameRate[] = "minFrameRate"; |
| 47 | 47 |
| 48 // Audio constraints. | 48 // Audio constraints. |
| 49 const char MediaConstraintsInterface::kEchoCancellation[] = | 49 const char MediaConstraintsInterface::kEchoCancellation[] = |
| 50 "googEchoCancellation"; | 50 "googEchoCancellation"; |
| 51 const char MediaConstraintsInterface::kGoogEchoCancellation[] = | 51 const char MediaConstraintsInterface::kGoogEchoCancellation[] = |
| 52 "googEchoCancellation"; | 52 "googEchoCancellation"; |
| 53 const char MediaConstraintsInterface::kExperimentalEchoCancellation[] = | |
| 54 "googEchoCancellation2"; | |
| 55 const char MediaConstraintsInterface::kExtendedFilterEchoCancellation[] = | 53 const char MediaConstraintsInterface::kExtendedFilterEchoCancellation[] = |
| 56 "googEchoCancellation2"; | 54 "googEchoCancellation2"; |
| 57 const char MediaConstraintsInterface::kDAEchoCancellation[] = | 55 const char MediaConstraintsInterface::kDAEchoCancellation[] = |
| 58 "googDAEchoCancellation"; | 56 "googDAEchoCancellation"; |
| 59 const char MediaConstraintsInterface::kAutoGainControl[] = | 57 const char MediaConstraintsInterface::kAutoGainControl[] = |
| 60 "googAutoGainControl"; | 58 "googAutoGainControl"; |
| 61 const char MediaConstraintsInterface::kExperimentalAutoGainControl[] = | 59 const char MediaConstraintsInterface::kExperimentalAutoGainControl[] = |
| 62 "googAutoGainControl2"; | 60 "googAutoGainControl2"; |
| 63 const char MediaConstraintsInterface::kNoiseSuppression[] = | 61 const char MediaConstraintsInterface::kNoiseSuppression[] = |
| 64 "googNoiseSuppression"; | 62 "googNoiseSuppression"; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 ++*mandatory_constraints; | 158 ++*mandatory_constraints; |
| 161 return rtc::FromString(string_value, value); | 159 return rtc::FromString(string_value, value); |
| 162 } | 160 } |
| 163 if (constraints->GetOptional().FindFirst(key, &string_value)) { | 161 if (constraints->GetOptional().FindFirst(key, &string_value)) { |
| 164 return rtc::FromString(string_value, value); | 162 return rtc::FromString(string_value, value); |
| 165 } | 163 } |
| 166 return false; | 164 return false; |
| 167 } | 165 } |
| 168 | 166 |
| 169 } // namespace webrtc | 167 } // namespace webrtc |
| OLD | NEW |