Recorder

public class Recorder

Sample video recorder implementation.

  • The AVWriterOutput for CameraKt.

    Declaration

    Swift

    public let output: AVWriterOutput
  • Designated init to pass in required deps

    Throws

    Throws error if cannot create asset writer with output file URL and file type

    Declaration

    Swift

    public init(url: URL, orientation: AVCaptureVideoOrientation, size: CGSize) throws

    Parameters

    url

    output URL of video file

    orientation

    current orientation of device

    size

    height of video output

  • Undocumented

    Declaration

    Swift

    public func startRecording()
  • Undocumented

    Declaration

    Swift

    public func finishRecording(completion: ((URL?, Error?) -> Void)?)