webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#import <ARDSettingsModel.h>
Protected Attributes | |
ARDSettingsStore * | _settingsStore |
Model class for user defined settings.
Currently used for streaming media constraints and bitrate only. In future audio media constraints support can be added as well. Offers list of avaliable video resolutions that can construct streaming media constraint. Exposes methods for reading and storing media constraints from persistent store. Also translates current user defined media constraint into RTCMediaConstraints dictionary.
Returns array of available capture resoultions.
The capture resolutions are represented as strings in the following format [width]x[height]
Returns array of available capture resoultions.
The capture resolutions are represented as strings in the following format [width]x[height]
- (nullable NSNumber *) currentMaxBitrateSettingFromStore |
Returns current max bitrate setting from store if present.
- (nullable NSNumber *) currentMaxBitrateSettingFromStore |
Returns current max bitrate setting from store if present.
- (nullable NSDictionary *) currentMediaConstraintFromStoreAsRTCDictionary |
Converts the current media constraints from store into dictionary with RTCMediaConstraints values.
- (nullable NSDictionary *) currentMediaConstraintFromStoreAsRTCDictionary |
Converts the current media constraints from store into dictionary with RTCMediaConstraints values.
|
implementation |
|
implementation |
|
implementation |
|
implementation |
- (NSString *) currentVideoResoultionConstraintFromStore |
Returns current video resolution media constraint string. If no constraint is in store, default value of 640x480 is returned. When defaulting to value, the default is saved in store for consistency reasons.
- (NSString *) currentVideoResoultionConstraintFromStore |
Returns current video resolution media constraint string. If no constraint is in store, default value of 640x480 is returned. When defaulting to value, the default is saved in store for consistency reasons.
|
implementation |
|
implementation |
Stores the provided bitrate value into the store.
bitrate | NSNumber representation of the max bitrate value. |
Stores the provided bitrate value into the store.
bitrate | NSNumber representation of the max bitrate value. |
Stores the provided video resolution media constraint string into the store.
If the provided constraint is no part of the available video resolutions the store operation will not be executed and NO will be returned.
constraint | the string to be stored. |
Stores the provided video resolution media constraint string into the store.
If the provided constraint is no part of the available video resolutions the store operation will not be executed and NO will be returned.
constraint | the string to be stored. |
|
protected |