VideoRotator

@available(iOS 16.0, tvOS 16.0, macOS 13.0, *)
public final class VideoRotator

This class allows to rotate image buffers that are provided by ReplayKit. The buffers arrive in portrait orientation and contain buffer-level attachment that allow to determine the target resolution and rotate the buffer accordingly.

  • VideoRotator domain errors

    See more

    Declaration

    Swift

    public enum Error : Swift.Error
  • Creates a new instance.

    Declaration

    Swift

    public init?()
  • Rotates a sample buffer.

    Declaration

    Swift

    public func rotate(buffer sampleBuffer: CMSampleBuffer) -> Result<CMSampleBuffer, Error>