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

Side by Side Diff: talk/app/webrtc/objc/public/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: Check back camera in new Objective-C API 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 27 matching lines...) Expand all
38 // counted video source interface. 38 // counted video source interface.
39 @interface RTCAVFoundationVideoSource : RTCVideoSource 39 @interface RTCAVFoundationVideoSource : RTCVideoSource
40 40
41 - (instancetype)initWithFactory:(RTCPeerConnectionFactory*)factory 41 - (instancetype)initWithFactory:(RTCPeerConnectionFactory*)factory
42 constraints:(RTCMediaConstraints*)constraints; 42 constraints:(RTCMediaConstraints*)constraints;
43 43
44 // Switches the camera being used (either front or back). 44 // Switches the camera being used (either front or back).
45 @property(nonatomic, assign) BOOL useBackCamera; 45 @property(nonatomic, assign) BOOL useBackCamera;
46 // Returns the active capture session. 46 // Returns the active capture session.
47 @property(nonatomic, readonly) AVCaptureSession* captureSession; 47 @property(nonatomic, readonly) AVCaptureSession* captureSession;
48 // Returns whether rear-facing camera is available for use.
tkchin_webrtc 2016/03/14 18:16:59 nit: Move this above useBackCamera
hjon 2016/03/14 18:31:44 Done.
49 @property(nonatomic, readonly) BOOL canUseBackCamera;
48 50
49 @end 51 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698