OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 11 matching lines...) Expand all Loading... | |
22 * dictionary. | 22 * dictionary. |
23 */ | 23 */ |
24 @interface ARDSettingsModel : NSObject | 24 @interface ARDSettingsModel : NSObject |
25 | 25 |
26 /** | 26 /** |
27 * Returns array of available capture resoultions. | 27 * Returns array of available capture resoultions. |
28 * | 28 * |
29 * The capture resolutions are represented as strings in the following format | 29 * The capture resolutions are represented as strings in the following format |
30 * [width]x[height] | 30 * [width]x[height] |
31 */ | 31 */ |
32 - (NSArray<NSString *> *)availableVideoResoultionsMediaConstraints; | 32 - (NSArray<NSString *> *)availableVideoResolutions; |
33 | 33 |
34 /** | 34 /** |
35 * Returns current video resolution media constraint string. | 35 * Returns current video resolution media constraint string. |
daniela-webrtc
2017/04/03 10:16:50
Remove media constraint references from documentat
sakal
2017/04/04 09:18:23
Done.
| |
36 * If no constraint is in store, default value of 640x480 is returned. | 36 * If no constraint is in store, default value of 640x480 is returned. |
37 * When defaulting to value, the default is saved in store for consistency reaso ns. | 37 * When defaulting to value, the default is saved in store for consistency reaso ns. |
38 */ | 38 */ |
39 - (NSString *)currentVideoResoultionConstraintFromStore; | 39 - (NSString *)currentVideoResolutionSettingFromStore; |
40 - (int)currentVideoResolutionWidthFromStore; | |
41 - (int)currentVideoResolutionHeightFromStore; | |
40 | 42 |
41 /** | 43 /** |
42 * Stores the provided video resolution media constraint string into the store. | 44 * Stores the provided video resolution media constraint string into the store. |
daniela-webrtc
2017/04/03 10:16:50
Remove media constraint references from documentat
sakal
2017/04/04 09:18:23
Done.
| |
43 * | 45 * |
44 * If the provided constraint is no part of the available video resolutions | 46 * If the provided constraint is no part of the available video resolutions |
45 * the store operation will not be executed and NO will be returned. | 47 * the store operation will not be executed and NO will be returned. |
46 * @param constraint the string to be stored. | 48 * @param constraint the string to be stored. |
47 * @return YES/NO depending on success. | 49 * @return YES/NO depending on success. |
48 */ | 50 */ |
49 - (BOOL)storeVideoResoultionConstraint:(NSString *)constraint; | 51 - (BOOL)storeVideoResolutionSetting:(NSString *)resolution; |
50 | 52 |
51 /** | 53 /** |
52 * Returns array of available video codecs. | 54 * Returns array of available video codecs. |
53 */ | 55 */ |
54 - (NSArray<NSString *> *)availableVideoCodecs; | 56 - (NSArray<NSString *> *)availableVideoCodecs; |
55 | 57 |
56 /** | 58 /** |
57 * Returns current video codec setting from store if present. | 59 * Returns current video codec setting from store if present. |
58 */ | 60 */ |
59 - (NSString *)currentVideoCodecSettingFromStore; | 61 - (NSString *)currentVideoCodecSettingFromStore; |
60 | 62 |
61 /** | 63 /** |
62 * Stores the provided video codec setting into the store. | 64 * Stores the provided video codec setting into the store. |
63 * | 65 * |
64 * If the provided constraint is not part of the available video codecs | 66 * If the provided constraint is not part of the available video codecs |
65 * the store operation will not be executed and NO will be returned. | 67 * the store operation will not be executed and NO will be returned. |
66 * @param video codec settings the string to be stored. | 68 * @param video codec settings the string to be stored. |
67 * @return YES/NO depending on success. | 69 * @return YES/NO depending on success. |
68 */ | 70 */ |
69 - (BOOL)storeVideoCodecSetting:(NSString *)videoCodec; | 71 - (BOOL)storeVideoCodecSetting:(NSString *)videoCodec; |
70 | 72 |
71 /** | 73 /** |
72 * Converts the current media constraints from store into dictionary with RTCMed iaConstraints | |
73 * values. | |
74 * | |
75 * @return NSDictionary with RTC width and height parameters | |
76 */ | |
77 - (nullable NSDictionary *)currentMediaConstraintFromStoreAsRTCDictionary; | |
78 | |
79 /** | |
80 * Returns current max bitrate setting from store if present. | 74 * Returns current max bitrate setting from store if present. |
81 */ | 75 */ |
82 - (nullable NSNumber *)currentMaxBitrateSettingFromStore; | 76 - (nullable NSNumber *)currentMaxBitrateSettingFromStore; |
83 | 77 |
84 /** | 78 /** |
85 * Stores the provided bitrate value into the store. | 79 * Stores the provided bitrate value into the store. |
86 * | 80 * |
87 * @param bitrate NSNumber representation of the max bitrate value. | 81 * @param bitrate NSNumber representation of the max bitrate value. |
88 */ | 82 */ |
89 - (void)storeMaxBitrateSetting:(nullable NSNumber *)bitrate; | 83 - (void)storeMaxBitrateSetting:(nullable NSNumber *)bitrate; |
90 | 84 |
91 @end | 85 @end |
92 NS_ASSUME_NONNULL_END | 86 NS_ASSUME_NONNULL_END |
OLD | NEW |