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

Unified Diff: webrtc/api/objc/avfoundationvideocapturer.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
« no previous file with comments | « webrtc/api/objc/RTCAVFoundationVideoSource.mm ('k') | webrtc/api/objc/avfoundationvideocapturer.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/avfoundationvideocapturer.h
diff --git a/webrtc/api/objc/avfoundationvideocapturer.h b/webrtc/api/objc/avfoundationvideocapturer.h
index 2ee456d3f593f15ac55630c0330fb88b898c6407..83ee70385e554ea53c2fcfcde77d1a6d5e31eed0 100644
--- a/webrtc/api/objc/avfoundationvideocapturer.h
+++ b/webrtc/api/objc/avfoundationvideocapturer.h
@@ -40,6 +40,12 @@ class AVFoundationVideoCapturer : public cricket::VideoCapturer {
/** Returns the active capture session. */
AVCaptureSession* GetCaptureSession();
+ /**
+ * Returns whether the rear-facing camera can be used.
+ * e.g. It can't be used because it doesn't exist.
+ */
+ bool CanUseBackCamera() const;
+
/** Switches the camera being used (either front or back). */
void SetUseBackCamera(bool useBackCamera);
bool GetUseBackCamera() const;
« no previous file with comments | « webrtc/api/objc/RTCAVFoundationVideoSource.mm ('k') | webrtc/api/objc/avfoundationvideocapturer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698