AssetScreenObject

public final class AssetScreenObject : ScreenObject, ChromaKeyProcessable

An object that manages offscreen rendering an asset resource.

  • Declaration

    Swift

    public var chromaKeyColor: CGColor?
  • The reading incidies whether assets reading or not.

    Declaration

    Swift

    public var isReading: Bool { get }
  • 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?