Class
VideoCapturer
public class VideoCapturer: NSObject, Loggable, VideoCapturerProtocol
Relationships
Nested Types
VideoCapturer.CapturerState
Subclasses
BufferCapturer
A
VideoCapturer
that can captureCMSampleBuffer
s.CameraCapturer
InAppScreenCapturer
MacOSScreenCapturer
Conforms To
Loggable
Allows to extend with custom
log
method which automatically captures current type (class name).MulticastDelegateProtocol
VideoCapturerProtocol
NSObject
Properties
supportedPixelFormats
public static let supportedPixelFormats
Array of supported pixel formats that can be used to capture a frame.
Usually the following formats are supported but it is recommended to confirm at run-time:
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
,
kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
,
kCVPixelFormatType_32BGRA
,
kCVPixelFormatType_32ARGB
.
dimensions
public internal(set) var dimensions: Dimensions?
captureState
public private(set) var captureState: CapturerState = .stopped
Methods
createTimeStampNs()
public static func createTimeStampNs() -> Int64
startCapture()
public func startCapture() -> Promise<Bool>
stopCapture()
public func stopCapture() -> Promise<Bool>
restartCapture()
public func restartCapture() -> Promise<Bool>
add(delegate:)
@objc(addDelegate:)
public func add(delegate: VideoCapturerDelegate)
remove(delegate:)
@objc(removeDelegate:)
public func remove(delegate: VideoCapturerDelegate)
removeAllDelegates()
@objc
public func removeAllDelegates()