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

Unified Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCCameraVideoCapturer.h

Issue 2776703002: New RTCCameraVideoCapturer. (Closed)
Patch Set: Safe Created 3 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698