DefaultCameraCaptureSource
@objcMembers
public class DefaultCameraCaptureSource : NSObject, CameraCaptureSource
extension DefaultCameraCaptureSource: AVCaptureVideoDataOutputSampleBufferDelegate
-
Declaration
Swift
public var videoContentHint: VideoContentHint
-
Declaration
Swift
public init(logger: Logger)
-
Declaration
Swift
public var device: MediaDevice? { get set }
-
Declaration
Swift
public var format: VideoCaptureFormat { get set }
-
Declaration
Swift
public var torchEnabled: Bool { get set }
-
Expose current capture device’s torch availability
Declaration
Swift
public var torchAvailable: Bool { get }
-
Declaration
Swift
public func addVideoSink(sink: VideoSink)
-
Declaration
Swift
public func removeVideoSink(sink: VideoSink)
-
Declaration
Swift
public func start()
-
Declaration
Swift
public func stop()
-
Declaration
Swift
public func switchCamera()
-
Declaration
Swift
public func addCaptureSourceObserver(observer: CaptureSourceObserver)
-
Declaration
Swift
public func removeCaptureSourceObserver(observer: CaptureSourceObserver)
-
Declaration
Swift
public func setEventAnalyticsController(eventAnalyticsController: EventAnalyticsController?)
-
Declaration
Swift
public func captureOutput(_: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from _: AVCaptureConnection)