Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Issue 2462623002: Add setting to AppRTCMobile for iOS, that can change capture resolution. (Closed)

Created:
4 years, 1 month ago by daniela-webrtc
Modified:
4 years, 1 month ago
Reviewers:
magjed_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

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 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+641 lines, -26 lines) Patch
M webrtc/examples/BUILD.gn View 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/examples/objc/AppRTCMobile/ARDAppClient.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M webrtc/examples/objc/AppRTCMobile/ARDAppClient.m View 1 2 4 chunks +13 lines, -12 lines 0 comments Download
M webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m View 2 chunks +13 lines, -1 line 0 comments Download
A webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.h View 1 1 chunk +60 lines, -0 lines 0 comments Download
A webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.m View 1 1 chunk +104 lines, -0 lines 0 comments Download
A + webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel+Private.h View 1 chunk +9 lines, -9 lines 0 comments Download
A webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsSettingsStore.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsSettingsStore.m View 1 chunk +29 lines, -0 lines 0 comments Download
A webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.h View 1 chunk +37 lines, -0 lines 0 comments Download
A webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m View 1 1 chunk +162 lines, -0 lines 0 comments Download
M webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m View 1 2 2 chunks +10 lines, -3 lines 0 comments Download
A webrtc/examples/objc/AppRTCMobile/tests/ARDMediaConstraintsModelTests.mm View 1 2 1 chunk +159 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
daniela-webrtc
4 years, 1 month ago (2016-10-28 12:57:10 UTC) #2
magjed_webrtc
Overall I think this looks good and very thorough with tests and everything. It's more ...
4 years, 1 month ago (2016-10-31 19:26:40 UTC) #4
daniela-webrtc
https://codereview.webrtc.org/2462623002/diff/1/webrtc/examples/BUILD.gn File webrtc/examples/BUILD.gn (right): https://codereview.webrtc.org/2462623002/diff/1/webrtc/examples/BUILD.gn#newcode235 webrtc/examples/BUILD.gn:235: "objc/AppRTCMobile/ios/ARDSettingsViewController.m", On 2016/10/31 19:26:39, magjed_webrtc wrote: > Shouldn't ARDMediaConstraintsModelTests.mm ...
4 years, 1 month ago (2016-11-01 09:51:13 UTC) #5
magjed_webrtc
https://codereview.webrtc.org/2462623002/diff/1/webrtc/examples/objc/AppRTCMobile/ARDAppClient.m File webrtc/examples/objc/AppRTCMobile/ARDAppClient.m (right): https://codereview.webrtc.org/2462623002/diff/1/webrtc/examples/objc/AppRTCMobile/ARDAppClient.m#newcode325 webrtc/examples/objc/AppRTCMobile/ARDAppClient.m:325: - (void)setDefaultMediaStreamConstraints:(RTCMediaConstraints *)mediaConstraints { On 2016/11/01 09:51:12, denicija-webrtc wrote: ...
4 years, 1 month ago (2016-11-01 12:06:09 UTC) #6
daniela-webrtc
https://codereview.webrtc.org/2462623002/diff/1/webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.h File webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.h (right): https://codereview.webrtc.org/2462623002/diff/1/webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.h#newcode39 webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.h:39: - (NSString *)currentVideoResoultionConstraintFromStore; On 2016/11/01 12:06:09, magjed_webrtc wrote: > ...
4 years, 1 month ago (2016-11-01 14:43:32 UTC) #7
magjed_webrtc
lgtm https://codereview.webrtc.org/2462623002/diff/1/webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.h File webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.h (right): https://codereview.webrtc.org/2462623002/diff/1/webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.h#newcode39 webrtc/examples/objc/AppRTCMobile/ios/ARDMediaConstraintsModel.h:39: - (NSString *)currentVideoResoultionConstraintFromStore; On 2016/11/01 14:43:32, denicija-webrtc wrote: ...
4 years, 1 month ago (2016-11-01 17:52:20 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2462623002/40001
4 years, 1 month ago (2016-11-02 09:32:47 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-02 09:56:13 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 09:56:20 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d17d536577ad277032baaba19f3bdbd9aa38099d
Cr-Commit-Position: refs/heads/master@{#14881}

Powered by Google App Engine
This is Rietveld 408576698