OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |