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

Unified Diff: talk/app/webrtc/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
Index: talk/app/webrtc/objc/avfoundationvideocapturer.h
diff --git a/talk/app/webrtc/objc/avfoundationvideocapturer.h b/talk/app/webrtc/objc/avfoundationvideocapturer.h
index adf7b2816cf8cb2241be763f6bf44a44506a763a..1c910a84b8f0c029436f8ca3356c2ad1a9510d9e 100644
--- a/talk/app/webrtc/objc/avfoundationvideocapturer.h
+++ b/talk/app/webrtc/objc/avfoundationvideocapturer.h
@@ -56,6 +56,10 @@ 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 | « talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm ('k') | talk/app/webrtc/objc/avfoundationvideocapturer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698