Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #import <Foundation/Foundation.h> | |
| 12 | |
| 13 #import <WebRTC/RTCMacros.h> | |
| 14 #import <WebRTC/RTCVideoCapturer.h> | |
| 15 | |
| 16 NS_ASSUME_NONNULL_BEGIN | |
| 17 | |
| 18 RTC_EXPORT | |
| 19 // Camera capture that implements RTCVideoCapturer. Delivers frames to a RTCVide oCapturerDelegate | |
| 20 // (usually RTCVideoSource). | |
| 21 @interface RTCCameraVideoCapturer : RTCVideoCapturer | |
| 22 | |
| 23 // Returns list of available capture devices that support video capture. | |
| 24 + (NSArray<AVCaptureDevice *> *)captureDevices; | |
| 25 // Returns list of formats that are supported by this class for this device. | |
| 26 + (NSArray<AVCaptureDeviceFormat *> *)supportedFormatsForDevice:(AVCaptureDevice *)device; | |
| 27 | |
| 28 // Starts and stops the capture session asynchronously. | |
| 29 - (void)startCaptureWithDevice:(AVCaptureDevice *)device | |
|
tkchin_webrtc
2017/04/06 18:06:43
This is pretty unusual. How are we supposed to cha
sakal
2017/04/07 10:31:38
We wanted to add more flexibility to the applicati
| |
| 30 format:(AVCaptureDeviceFormat *)format | |
| 31 fps:(int)fps; | |
| 32 // Stops the capture session asynchronously. | |
| 33 - (void)stopCapture; | |
| 34 | |
| 35 // Capture session that is used for capturing. Valid from initialization to deal loc. | |
| 36 @property(readonly, nonatomic) AVCaptureSession *captureSession; | |
|
tkchin_webrtc
2017/04/06 18:06:43
nit: properties before methods
sakal
2017/04/07 10:31:38
Done.
| |
| 37 | |
| 38 @end | |
| 39 | |
| 40 NS_ASSUME_NONNULL_END | |
| OLD | NEW |