commit | d17d536577ad277032baaba19f3bdbd9aa38099d | [log] [tgz] |
---|---|---|
author | denicija <denicija@webrtc.org> | Wed Nov 02 09:56:09 2016 |
committer | Commit bot <commit-bot@chromium.org> | Wed Nov 02 09:56:16 2016 |
tree | 1afc425ac53e38621eb091f22bf8af9f8ca2d2e8 | |
parent | b763e39beba92b45baa09542f949daabbe6258a3 [diff] |
Add 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 Review-Url: https://codereview.webrtc.org/2462623002 Cr-Commit-Position: refs/heads/master@{#14881}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others. This page is maintained by the Google Chrome team.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.