DescriptionAdd setting to AppRTCMobile for iOS, that can change capture resolution.
To achieve this, several changes needed to be made on both UI and
app logic level.
* Settings view controller is added (modally shown when the settings
button is pressed).
- From there the user can see the current capture resolution
and select another capture resolution.
* Model class for the capture resolution added.
- Improves readability and makes separation of concerns cleaner
- Handles persisting
- Provides defaults
- Maps video resolution setting to RTCMediaConstraints dictionary
* Test for the model class
In future it would be possible to extend this CL and add further settings (i.e
bit rate).
Also it would be easy to remove the hardcoded resolutions and use dynamic values
depending on device capability.
BUG=webrtc:6473
Committed: https://crrev.com/d17d536577ad277032baaba19f3bdbd9aa38099d
Cr-Commit-Position: refs/heads/master@{#14881}
Patch Set 1 #
Total comments: 28
Patch Set 2 : Add check to make sure only available constraint is being stored. #
Total comments: 2
Patch Set 3 : Address comments #Messages
Total messages: 14 (5 generated)
|