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

Unified Diff: webrtc/api/objc/RTCAVFoundationVideoSource.h

Issue 1416303003: Handle iOS devices with no rear-facing camera (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Check back camera in new Objective-C API Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/api/objc/RTCAVFoundationVideoSource.h
diff --git a/webrtc/api/objc/RTCAVFoundationVideoSource.h b/webrtc/api/objc/RTCAVFoundationVideoSource.h
index e3404441ccb90f64ce641045784f8f1bfa12a3d3..794475df946f2501070d2e6421c42b6f69b91e00 100644
--- a/webrtc/api/objc/RTCAVFoundationVideoSource.h
+++ b/webrtc/api/objc/RTCAVFoundationVideoSource.h
@@ -34,6 +34,9 @@ NS_ASSUME_NONNULL_BEGIN
/** Returns the active capture session. */
@property(nonatomic, readonly) AVCaptureSession *captureSession;
+/** Returns whether rear-facing camera is available for use. */
tkchin_webrtc 2016/03/14 18:16:59 ditto move above
hjon 2016/03/14 18:31:44 Done.
+@property(nonatomic, readonly) BOOL canUseBackCamera;
+
@end

Powered by Google App Engine
This is Rietveld 408576698