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 30 matching lines...) Expand all Loading... |
41 const char MediaConstraintsInterface::kMaxWidth[] = "maxWidth"; | 41 const char MediaConstraintsInterface::kMaxWidth[] = "maxWidth"; |
42 const char MediaConstraintsInterface::kMinWidth[] = "minWidth"; | 42 const char MediaConstraintsInterface::kMinWidth[] = "minWidth"; |
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::kExtendedFilterEchoCancellation[] = | 51 const char MediaConstraintsInterface::kExperimentalEchoCancellation[] = |
52 "googEchoCancellation2"; | 52 "googEchoCancellation2"; |
53 const char MediaConstraintsInterface::kDAEchoCancellation[] = | 53 const char MediaConstraintsInterface::kDAEchoCancellation[] = |
54 "googDAEchoCancellation"; | 54 "googDAEchoCancellation"; |
55 const char MediaConstraintsInterface::kAutoGainControl[] = | 55 const char MediaConstraintsInterface::kAutoGainControl[] = |
56 "googAutoGainControl"; | 56 "googAutoGainControl"; |
57 const char MediaConstraintsInterface::kExperimentalAutoGainControl[] = | 57 const char MediaConstraintsInterface::kExperimentalAutoGainControl[] = |
58 "googAutoGainControl2"; | 58 "googAutoGainControl2"; |
59 const char MediaConstraintsInterface::kNoiseSuppression[] = | 59 const char MediaConstraintsInterface::kNoiseSuppression[] = |
60 "googNoiseSuppression"; | 60 "googNoiseSuppression"; |
61 const char MediaConstraintsInterface::kExperimentalNoiseSuppression[] = | 61 const char MediaConstraintsInterface::kExperimentalNoiseSuppression[] = |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 ++*mandatory_constraints; | 156 ++*mandatory_constraints; |
157 return rtc::FromString(string_value, value); | 157 return rtc::FromString(string_value, value); |
158 } | 158 } |
159 if (constraints->GetOptional().FindFirst(key, &string_value)) { | 159 if (constraints->GetOptional().FindFirst(key, &string_value)) { |
160 return rtc::FromString(string_value, value); | 160 return rtc::FromString(string_value, value); |
161 } | 161 } |
162 return false; | 162 return false; |
163 } | 163 } |
164 | 164 |
165 } // namespace webrtc | 165 } // namespace webrtc |
OLD | NEW |