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

Issue 2735303004: Add video codec setting to AppRTCMobile on iOS. (Closed)

Created:
3 years, 9 months ago by sakal
Modified:
3 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add video codec setting to AppRTCMobile on iOS. List items in settings menu no longer stay selected. Checkmarks are now added to the selected options before the view appears. BUG=webrtc:7316 TBR=denicija Review-Url: https://codereview.webrtc.org/2735303004 Cr-Commit-Position: refs/heads/master@{#17296} Committed: https://chromium.googlesource.com/external/webrtc/+/68b5df97c77a1ae5e16ec27f83cbce098411da0e

Patch Set 1 : Remove unneeded handlers. #

Total comments: 18

Patch Set 2 : Changes according to kthelgason's comments. #1 #

Patch Set 3 : Replace if statements with switches. #

Total comments: 7

Patch Set 4 : Changes according to kthelgason's comments. #2 #

Patch Set 5 : Fix AppRTCMobile on Mac. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -77 lines) Patch
M webrtc/examples/objc/AppRTCMobile/ARDAppClient.h View 1 2 3 1 chunk +2 lines, -1 line 2 comments Download
M webrtc/examples/objc/AppRTCMobile/ARDAppClient.m View 1 2 3 5 chunks +14 lines, -11 lines 0 comments Download
M webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.h View 1 1 chunk +20 lines, -0 lines 2 comments Download
M webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.m View 1 3 chunks +29 lines, -0 lines 0 comments Download
M webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.h View 1 2 3 1 chunk +2 lines, -0 lines 1 comment Download
M webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.m View 1 2 chunks +10 lines, -0 lines 0 comments Download
M webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m View 1 2 6 chunks +101 lines, -62 lines 1 comment Download
M webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/examples/objc/AppRTCMobile/mac/APPRTCViewController.m View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 34 (22 generated)
sakal
PTAL
3 years, 9 months ago (2017-03-09 12:38:43 UTC) #5
kthelgason
Some comments: https://codereview.webrtc.org/2735303004/diff/40001/webrtc/examples/objc/AppRTCMobile/ARDAppClient.m File webrtc/examples/objc/AppRTCMobile/ARDAppClient.m (right): https://codereview.webrtc.org/2735303004/diff/40001/webrtc/examples/objc/AppRTCMobile/ARDAppClient.m#newcode102 webrtc/examples/objc/AppRTCMobile/ARDAppClient.m:102: NSString *_videoCodec; Maybe make this a property ...
3 years, 9 months ago (2017-03-09 13:39:43 UTC) #7
sakal
https://codereview.webrtc.org/2735303004/diff/40001/webrtc/examples/objc/AppRTCMobile/ARDAppClient.m File webrtc/examples/objc/AppRTCMobile/ARDAppClient.m (right): https://codereview.webrtc.org/2735303004/diff/40001/webrtc/examples/objc/AppRTCMobile/ARDAppClient.m#newcode102 webrtc/examples/objc/AppRTCMobile/ARDAppClient.m:102: NSString *_videoCodec; On 2017/03/09 13:39:43, kthelgason wrote: > Maybe ...
3 years, 9 months ago (2017-03-10 10:25:28 UTC) #9
kthelgason
The refactoring looks really good! One suggestion and some nits. https://codereview.webrtc.org/2735303004/diff/100001/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.h File webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.h (right): https://codereview.webrtc.org/2735303004/diff/100001/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.h#newcode22 ...
3 years, 9 months ago (2017-03-10 10:41:44 UTC) #10
sakal
https://codereview.webrtc.org/2735303004/diff/100001/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.h File webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.h (right): https://codereview.webrtc.org/2735303004/diff/100001/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.h#newcode22 webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.h:22: @property(getter=videoCodec) NSString* videoCodec; On 2017/03/10 10:41:44, kthelgason wrote: > ...
3 years, 9 months ago (2017-03-10 11:23:14 UTC) #11
kthelgason
Looks great, lgtm!
3 years, 9 months ago (2017-03-10 13:28:01 UTC) #12
magjed_webrtc
lgtm I would like Daniela to review ARDSettingsViewController.m retrospectively once she comes back.
3 years, 9 months ago (2017-03-15 14:10:27 UTC) #14
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/2735303004/120001
3 years, 9 months ago (2017-03-15 14:18:54 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_baremetal/builds/19864)
3 years, 9 months ago (2017-03-15 14:24:23 UTC) #18
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/2735303004/140001
3 years, 9 months ago (2017-03-17 15:59:23 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:140001) as https://chromium.googlesource.com/external/webrtc/+/68b5df97c77a1ae5e16ec27f83cbce098411da0e
3 years, 9 months ago (2017-03-17 16:02:04 UTC) #32
daniela-webrtc
3 years, 9 months ago (2017-03-20 13:10:07 UTC) #34
Message was sent while issue was closed.
Great work Sami! This looks really good!
Some (mostly style) comments bellow, that can be addressed in some future CL.

https://codereview.webrtc.org/2735303004/diff/140001/webrtc/examples/objc/App...
File webrtc/examples/objc/AppRTCMobile/ARDAppClient.h (right):

https://codereview.webrtc.org/2735303004/diff/140001/webrtc/examples/objc/App...
webrtc/examples/objc/AppRTCMobile/ARDAppClient.h:64:
preferVideoCodec:(NSString*)codec;
NSString* -> NSString *

https://codereview.webrtc.org/2735303004/diff/140001/webrtc/examples/objc/App...
webrtc/examples/objc/AppRTCMobile/ARDAppClient.h:64:
preferVideoCodec:(NSString*)codec;
I don't think this is needed as early as the init?
It would be nice to pass all settings the same way i.e either in the initializer
or set as parameters like the media constraints and the bitrate are currently
set.
Having parameters will enable reset of settings when the (ARDApp)client is
cached and not recreated all the time.

https://codereview.webrtc.org/2735303004/diff/140001/webrtc/examples/objc/App...
File webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.h (right):

https://codereview.webrtc.org/2735303004/diff/140001/webrtc/examples/objc/App...
webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.h:57: * Returns current
video codec setting from store if present.
This documentation can be improved slightly. Suggestion:
"Returns current video codec setting from store if present or default (H264)
otherwise".

https://codereview.webrtc.org/2735303004/diff/140001/webrtc/examples/objc/App...
webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.h:64: * If the provided
constraint is not part of the available video codecs
provided constraint -> provided video codec

https://codereview.webrtc.org/2735303004/diff/140001/webrtc/examples/objc/App...
File webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.h (right):

https://codereview.webrtc.org/2735303004/diff/140001/webrtc/examples/objc/App...
webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsStore.h:22:
@property(nonatomic) NSString* videoCodec;
NSString* -> NSString *

https://codereview.webrtc.org/2735303004/diff/140001/webrtc/examples/objc/App...
File webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m (right):

https://codereview.webrtc.org/2735303004/diff/140001/webrtc/examples/objc/App...
webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsViewController.m:57: -
(void)viewDidAppear:(BOOL)animated {
This can be removed

Powered by Google App Engine
This is Rietveld 408576698