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

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: Changes based on feedback 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..1d1eac0fab08b6b3506522f1f22d46cc80ba437f 100644
--- a/webrtc/api/objc/RTCAVFoundationVideoSource.h
+++ b/webrtc/api/objc/RTCAVFoundationVideoSource.h
@@ -28,6 +28,9 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)initWithFactory:(RTCPeerConnectionFactory *)factory
constraints:(nullable RTCMediaConstraints *)constraints;
+/** Returns whether rear-facing camera is available for use. */
+@property(nonatomic, readonly) BOOL canUseBackCamera;
+
/** Switches the camera being used (either front or back). */
@property(nonatomic, assign) BOOL useBackCamera;
« no previous file with comments | « talk/app/webrtc/objc/public/RTCAVFoundationVideoSource.h ('k') | webrtc/api/objc/RTCAVFoundationVideoSource.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698