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

Side by Side 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 unified diff | Download patch
OLDNEW
(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 @interface RTCCameraVideoCapturer : RTCVideoCapturer<AVCaptureVideoDataOutputSam pleBufferDelegate>
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.
20
21 + (NSArray<AVCaptureDevice *> *)captureDevices;
22 + (NSArray<AVCaptureDeviceFormat *> *)supportedFormatsForDevice:(AVCaptureDevice *)device;
23
24 // Starts and stops the capture session asynchronously.
25 - (void)startCaptureWithDevice:(AVCaptureDevice *)device
26 format:(AVCaptureDeviceFormat *)format
27 fps:(int)fps;
28 // Stops the capture session asynchronously.
29 - (void)stop;
30
31 @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.
32
33 @end
34
35 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698