AssetScreenObject
@ScreenActor
public final class AssetScreenObject : ScreenObject, ChromaKeyProcessable
An object that manages offscreen rendering an asset resource.
-
Declaration
Swift
@ScreenActor public var chromaKeyColor: CGColor? -
The reading incidies whether assets reading or not.
Declaration
Swift
@ScreenActor public var isReading: Bool { get } -
The video is displayed within a player layer’s bounds.
Declaration
Swift
@ScreenActor public var videoGravity: AVLayerVideoGravity { get set } -
Prepares the asset reader to start reading.
Declaration
Swift
@ScreenActor public func startReading(_ asset: AVAsset) throws -
Cancels and stops the reader’s output.
Declaration
Swift
@ScreenActor public func cancelReading() -
Declaration
Swift
@ScreenActor override public func makeBounds(_ size: CGSize) -> CGRect -
Declaration
Swift
@ScreenActor override public func makeImage(_ renderer: some ScreenRenderer) -> CGImage?