VideoWriterService

@objc
public protocol VideoWriterService : AnyObject

Video writer service protocol

  • Write a sample buffer as a frame of a video

    Declaration

    Swift

    @objc
    func writeSampleBuffer(_ sampleBuffer: CMSampleBuffer, rotation: CGFloat)

    Parameters

    sampleBuffer

    Sample buffer to write

    rotation

    Rotation of the video frame in degrees

  • Finish writing the video

    Declaration

    Swift

    @objc
    func finish(completionBlock: @escaping (URL?) -> Void)

    Parameters

    completionBlock

    Callback when the video is written to a URL