IOVideoCaptureUnit

@available(tvOS 17.0, *)
public final class IOVideoCaptureUnit : IOCaptureUnit

An object that provides the interface to control the AVCaptureDevice’s transport behavior.

  • The default color format.

    Declaration

    Swift

    public static let colorFormat: OSType
  • The default color format.

  • The current video device object.

    Declaration

    Swift

    public private(set) var device: AVCaptureDevice? { get }
  • Specifies the video capture color format.

    Warning

    If a format other than kCVPixelFormatType_32BGRA is set, the multi-camera feature will become unavailable. We intend to support this in the future.

    Declaration

    Swift

    public var colorFormat: OSType
  • Specifies the videoOrientation indicates whether to rotate the video flowing through the connection to a given orientation.

    Declaration

    Swift

    public var videoOrientation: AVCaptureVideoOrientation { get set }
  • Spcifies the video mirroed indicates whether the video flowing through the connection should be mirrored about its vertical axis.

    Declaration

    Swift

    public var isVideoMirrored: Bool { get set }
  • Specifies the preferredVideoStabilizationMode most appropriate for use with the connection.