AssetScreenObject

public final class AssetScreenObject : ScreenObject

An object that manages offscreen rendering an asset resource.

  • Undocumented

    Declaration

    Swift

    public var isReading: Bool { get }
  • A value that specifies how the video is displayed within a player layer’s bounds.

    Declaration

    Swift

    public var videoGravity: AVLayerVideoGravity { get set }
  • Prepares the asset reader to start reading.

    Declaration

    Swift

    public func startReading(_ asset: AVAsset) throws
  • Cancels and stops the reader’s output.

    Declaration

    Swift

    public func cancelReading()
  • Declaration

    Swift

    override public func makeBounds(_ size: CGSize) -> CGRect
  • Declaration

    Swift

    override public func makeImage(_ renderer: some ScreenRenderer) -> CGImage?