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

Issue 1416303003: Handle iOS devices with no rear-facing camera (Closed)

Created:
5 years, 2 months ago by hjon
Modified:
4 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Handle iOS devices with no rear-facing camera Devices exist (specifically the 16GB 5th generation iPod Touch) that do not have a rear-facing camera. This CL: - Adjusts RTCAVFoundationVideoCapturerInternal so initialization doesn't fail because a rear-facing camera doesn't exist, but still logs a warning - Provides a check for whether or not a rear-facing camera can be used (useful for toggling UI elements) - Turns an attempt to switch to the rear-facing camera into a no-op with a warning. BUG= Committed: https://crrev.com/a1cf366ea9ad5e47240c2a9ba7041c293fc6e84d Cr-Commit-Position: refs/heads/master@{#11992}

Patch Set 1 #

Patch Set 2 : Check back camera in new Objective-C API #

Total comments: 10

Patch Set 3 : Changes based on feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -20 lines) Patch
M talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm View 1 1 chunk +4 lines, -0 lines 0 comments Download
M talk/app/webrtc/objc/avfoundationvideocapturer.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M talk/app/webrtc/objc/avfoundationvideocapturer.mm View 1 2 6 chunks +33 lines, -10 lines 0 comments Download
M talk/app/webrtc/objc/public/RTCAVFoundationVideoSource.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCAVFoundationVideoSource.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/api/objc/RTCAVFoundationVideoSource.mm View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/api/objc/avfoundationvideocapturer.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/api/objc/avfoundationvideocapturer.mm View 1 2 6 chunks +33 lines, -10 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
hjon
Proposed changes to handle iOS devices with no rear-facing camera while not adding much additional ...
5 years, 2 months ago (2015-10-22 22:30:36 UTC) #2
hjon
4 years, 9 months ago (2016-03-14 15:11:17 UTC) #3
tkchin_webrtc
https://codereview.webrtc.org/1416303003/diff/20001/talk/app/webrtc/objc/avfoundationvideocapturer.mm File talk/app/webrtc/objc/avfoundationvideocapturer.mm (right): https://codereview.webrtc.org/1416303003/diff/20001/talk/app/webrtc/objc/avfoundationvideocapturer.mm#newcode56 talk/app/webrtc/objc/avfoundationvideocapturer.mm:56: @property(nonatomic, readonly) BOOL canUseBackCamera; nit: move above useBackCamera https://codereview.webrtc.org/1416303003/diff/20001/talk/app/webrtc/objc/avfoundationvideocapturer.mm#newcode118 ...
4 years, 9 months ago (2016-03-14 18:16:59 UTC) #4
hjon
ptal https://codereview.webrtc.org/1416303003/diff/20001/talk/app/webrtc/objc/avfoundationvideocapturer.mm File talk/app/webrtc/objc/avfoundationvideocapturer.mm (right): https://codereview.webrtc.org/1416303003/diff/20001/talk/app/webrtc/objc/avfoundationvideocapturer.mm#newcode56 talk/app/webrtc/objc/avfoundationvideocapturer.mm:56: @property(nonatomic, readonly) BOOL canUseBackCamera; On 2016/03/14 18:16:59, tkchin_webrtc ...
4 years, 9 months ago (2016-03-14 18:31:44 UTC) #5
tkchin_webrtc
lgtm
4 years, 9 months ago (2016-03-14 19:16:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416303003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416303003/40001
4 years, 9 months ago (2016-03-14 22:13:34 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) win_baremetal on ...
4 years, 9 months ago (2016-03-15 00:13:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416303003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416303003/40001
4 years, 9 months ago (2016-03-15 03:23:11 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-15 03:55:31 UTC) #13
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 03:55:34 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a1cf366ea9ad5e47240c2a9ba7041c293fc6e84d
Cr-Commit-Position: refs/heads/master@{#11992}

Powered by Google App Engine
This is Rietveld 408576698