#ifndef VIDEOCAMERACAPTURER_H #define VIDEOCAMERACAPTURER_H #import #import #include #include "api/scoped_refptr.h" #include "api/media_stream_interface.h" @interface VideoCameraCapturer : NSObject + (NSArray *)captureDevices; + (NSArray *)supportedFormatsForDevice:(AVCaptureDevice *)device; - (instancetype)initWithSource:(rtc::scoped_refptr)source; - (void)startCaptureWithDevice:(AVCaptureDevice *)device format:(AVCaptureDeviceFormat *)format fps:(NSInteger)fps; - (void)stopCapture; @end #endif