OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 12 matching lines...) Expand all Loading... |
23 NSString * const kRTCMediaConstraintsMaxWidth = | 23 NSString * const kRTCMediaConstraintsMaxWidth = |
24 @(webrtc::MediaConstraintsInterface::kMaxWidth); | 24 @(webrtc::MediaConstraintsInterface::kMaxWidth); |
25 NSString * const kRTCMediaConstraintsMinHeight = | 25 NSString * const kRTCMediaConstraintsMinHeight = |
26 @(webrtc::MediaConstraintsInterface::kMinHeight); | 26 @(webrtc::MediaConstraintsInterface::kMinHeight); |
27 NSString * const kRTCMediaConstraintsMaxHeight = | 27 NSString * const kRTCMediaConstraintsMaxHeight = |
28 @(webrtc::MediaConstraintsInterface::kMaxHeight); | 28 @(webrtc::MediaConstraintsInterface::kMaxHeight); |
29 NSString * const kRTCMediaConstraintsMinFrameRate = | 29 NSString * const kRTCMediaConstraintsMinFrameRate = |
30 @(webrtc::MediaConstraintsInterface::kMinFrameRate); | 30 @(webrtc::MediaConstraintsInterface::kMinFrameRate); |
31 NSString * const kRTCMediaConstraintsMaxFrameRate = | 31 NSString * const kRTCMediaConstraintsMaxFrameRate = |
32 @(webrtc::MediaConstraintsInterface::kMaxFrameRate); | 32 @(webrtc::MediaConstraintsInterface::kMaxFrameRate); |
| 33 NSString * const kRTCMediaConstraintsLevelControl = |
| 34 @(webrtc::MediaConstraintsInterface::kLevelControl); |
| 35 |
| 36 NSString * const kRTCMediaConstraintsValueTrue = |
| 37 @(webrtc::MediaConstraintsInterface::kValueTrue); |
| 38 NSString * const kRTCMediaConstraintsValueFalse = |
| 39 @(webrtc::MediaConstraintsInterface::kValueFalse); |
33 | 40 |
34 namespace webrtc { | 41 namespace webrtc { |
35 | 42 |
36 MediaConstraints::~MediaConstraints() {} | 43 MediaConstraints::~MediaConstraints() {} |
37 | 44 |
38 MediaConstraints::MediaConstraints() {} | 45 MediaConstraints::MediaConstraints() {} |
39 | 46 |
40 MediaConstraints::MediaConstraints( | 47 MediaConstraints::MediaConstraints( |
41 const MediaConstraintsInterface::Constraints& mandatory, | 48 const MediaConstraintsInterface::Constraints& mandatory, |
42 const MediaConstraintsInterface::Constraints& optional) | 49 const MediaConstraintsInterface::Constraints& optional) |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 NSString *value = [constraints objectForKey:key]; | 109 NSString *value = [constraints objectForKey:key]; |
103 NSAssert([value isKindOfClass:[NSString class]], | 110 NSAssert([value isKindOfClass:[NSString class]], |
104 @"%@ is not an NSString.", value); | 111 @"%@ is not an NSString.", value); |
105 nativeConstraints.push_back(webrtc::MediaConstraintsInterface::Constraint( | 112 nativeConstraints.push_back(webrtc::MediaConstraintsInterface::Constraint( |
106 key.stdString, value.stdString)); | 113 key.stdString, value.stdString)); |
107 } | 114 } |
108 return nativeConstraints; | 115 return nativeConstraints; |
109 } | 116 } |
110 | 117 |
111 @end | 118 @end |
OLD | NEW |