#ifndef TGCALLS_VIDEO_CAMERA_CAPTURER_MAC_H #define TGCALLS_VIDEO_CAMERA_CAPTURER_MAC_H #ifndef WEBRTC_IOS #import #import #include #include "api/scoped_refptr.h" #include "api/media_stream_interface.h" @protocol CapturerInterface - (void)start; - (void)stop; - (void)setIsEnabled:(bool)isEnabled; - (void)setUncroppedSink:(std::shared_ptr>)sink; - (void)setPreferredCaptureAspectRatio:(float)aspectRatio; - (void)setOnFatalError:(std::function)error; - (void)setOnPause:(std::function)pause; @end @interface VideoCameraCapturer : NSObject + (NSArray *)captureDevices; + (NSArray *)supportedFormatsForDevice:(AVCaptureDevice *)device; - (instancetype)initWithSource:(rtc::scoped_refptr)source isActiveUpdated:(void (^)(bool))isActiveUpdated; - (void)setupCaptureWithDevice:(AVCaptureDevice *)device format:(AVCaptureDeviceFormat *)format fps:(NSInteger)fps; - (void)setUncroppedSink:(std::shared_ptr>)sink; - (BOOL)deviceIsCaptureCompitable:(AVCaptureDevice *)device; @end #endif //WEBRTC_MAC #endif