VideoRotator
@available(iOS 16.0, tvOS 16.0, macOS 13.0, *)
public 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.
-
Undocumented
Declaration
Swift
public init?()
-
Undocumented
Declaration
Swift
public func rotate(buffer sampleBuffer: CMSampleBuffer) -> Result<CMSampleBuffer, VideoRotatorError>