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

Unified Diff: talk/app/webrtc/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 | « no previous file | talk/app/webrtc/objc/avfoundationvideocapturer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm
diff --git a/talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm b/talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm
index 8b4e454a6ebe1434c7f54a42d158295fb9163a47..660bb4d6cbfb28a4f65ed8366529c622b6618e11 100644
--- a/talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm
+++ b/talk/app/webrtc/objc/RTCAVFoundationVideoSource.mm
@@ -46,6 +46,10 @@
return [super initWithMediaSource:source];
}
+- (BOOL)canUseBackCamera {
+ return self.capturer->CanUseBackCamera();
+}
+
- (BOOL)useBackCamera {
return self.capturer->GetUseBackCamera();
}
« no previous file with comments | « no previous file | talk/app/webrtc/objc/avfoundationvideocapturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698