Index: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h |
diff --git a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e27b5c062c2454f1678441de13def5be722e3198 |
--- /dev/null |
+++ b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h |
@@ -0,0 +1,35 @@ |
+/* |
+ * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
+ * |
+ * Use of this source code is governed by a BSD-style license |
+ * that can be found in the LICENSE file in the root of the source |
+ * tree. An additional intellectual property rights grant can be found |
+ * in the file PATENTS. All contributing project authors may |
+ * be found in the AUTHORS file in the root of the source tree. |
+ */ |
+ |
+#import <Foundation/Foundation.h> |
+ |
+#import <WebRTC/RTCMacros.h> |
+#import <WebRTC/RTCVideoCapturer.h> |
+ |
+NS_ASSUME_NONNULL_BEGIN |
+ |
+RTC_EXPORT |
+@interface RTCCameraVideoCapturer : RTCVideoCapturer<AVCaptureVideoDataOutputSampleBufferDelegate> |
daniela-webrtc
2017/03/26 18:08:58
Add documentation comments to this interface and a
daniela-webrtc
2017/03/26 18:08:58
Remove the <AVCaptureVideoDataOutputSampleBufferDe
sakal
2017/03/29 11:45:44
Done.
|
+ |
++ (NSArray<AVCaptureDevice *> *)captureDevices; |
++ (NSArray<AVCaptureDeviceFormat *> *)supportedFormatsForDevice:(AVCaptureDevice *)device; |
+ |
+// Starts and stops the capture session asynchronously. |
+- (void)startCaptureWithDevice:(AVCaptureDevice *)device |
+ format:(AVCaptureDeviceFormat *)format |
+ fps:(int)fps; |
+// Stops the capture session asynchronously. |
+- (void)stop; |
+ |
+@property(readonly, nonatomic) AVCaptureSession *captureSession; |
daniela-webrtc
2017/03/26 18:08:58
Not sure if the capture session needs to be expose
magjed_webrtc
2017/03/27 13:11:48
It's used for RTCCameraPreviewView.m. I guess it's
sakal
2017/03/29 11:45:44
Yes, this is the reason it exists here.
|
+ |
+@end |
+ |
+NS_ASSUME_NONNULL_END |