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

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

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.h ('k') | webrtc/api/objc/avfoundationvideocapturer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCAVFoundationVideoSource.mm
diff --git a/webrtc/api/objc/RTCAVFoundationVideoSource.mm b/webrtc/api/objc/RTCAVFoundationVideoSource.mm
index 0cd015550ca39369f3291158a11fdb2300e2ac48..1005c7dfa122c6528adc6b46cfb14644c430fc5f 100644
--- a/webrtc/api/objc/RTCAVFoundationVideoSource.mm
+++ b/webrtc/api/objc/RTCAVFoundationVideoSource.mm
@@ -27,6 +27,10 @@
return [super initWithNativeVideoSource:source];
}
+- (BOOL)canUseBackCamera {
+ return self.capturer->CanUseBackCamera();
+}
+
- (BOOL)useBackCamera {
return self.capturer->GetUseBackCamera();
}
« no previous file with comments | « webrtc/api/objc/RTCAVFoundationVideoSource.h ('k') | webrtc/api/objc/avfoundationvideocapturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698