| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #import <WebRTC/RTCMacros.h> | 11 #import <WebRTC/RTCMacros.h> |
| 12 #import <WebRTC/RTCVideoSource.h> | 12 #import <WebRTC/RTCVideoSource.h> |
| 13 | 13 |
| 14 @class AVCaptureSession; | 14 @class AVCaptureSession; |
| 15 @class RTCMediaConstraints; | 15 @class RTCMediaConstraints; |
| 16 @class RTCPeerConnectionFactory; | 16 @class RTCPeerConnectionFactory; |
| 17 | 17 |
| 18 NS_ASSUME_NONNULL_BEGIN | 18 NS_ASSUME_NONNULL_BEGIN |
| 19 | 19 |
| 20 /** | 20 /** |
| 21 * DEPRECATED Use RTCCameraVideoCapturer instead. |
| 22 * |
| 21 * RTCAVFoundationVideoSource is a video source that uses | 23 * RTCAVFoundationVideoSource is a video source that uses |
| 22 * webrtc::AVFoundationVideoCapturer. We do not currently provide a wrapper for | 24 * webrtc::AVFoundationVideoCapturer. We do not currently provide a wrapper for |
| 23 * that capturer because cricket::VideoCapturer is not ref counted and we cannot | 25 * that capturer because cricket::VideoCapturer is not ref counted and we cannot |
| 24 * guarantee its lifetime. Instead, we expose its properties through the ref | 26 * guarantee its lifetime. Instead, we expose its properties through the ref |
| 25 * counted video source interface. | 27 * counted video source interface. |
| 26 */ | 28 */ |
| 27 RTC_EXPORT | 29 RTC_EXPORT |
| 28 @interface RTCAVFoundationVideoSource : RTCVideoSource | 30 @interface RTCAVFoundationVideoSource : RTCVideoSource |
| 29 | 31 |
| 30 - (instancetype)init NS_UNAVAILABLE; | 32 - (instancetype)init NS_UNAVAILABLE; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 44 | 46 |
| 45 /** Switches the camera being used (either front or back). */ | 47 /** Switches the camera being used (either front or back). */ |
| 46 @property(nonatomic, assign) BOOL useBackCamera; | 48 @property(nonatomic, assign) BOOL useBackCamera; |
| 47 | 49 |
| 48 /** Returns the active capture session. */ | 50 /** Returns the active capture session. */ |
| 49 @property(nonatomic, readonly) AVCaptureSession *captureSession; | 51 @property(nonatomic, readonly) AVCaptureSession *captureSession; |
| 50 | 52 |
| 51 @end | 53 @end |
| 52 | 54 |
| 53 NS_ASSUME_NONNULL_END | 55 NS_ASSUME_NONNULL_END |
| OLD | NEW |