VideoTrackScreenObject
@ScreenActor
public final class VideoTrackScreenObject : ScreenObject, ChromaKeyProcessable
An object that manages offscreen rendering a video track source.
-
Declaration
Swift
@ScreenActor public var chromaKeyColor: CGColor?
-
Specifies the track number how the displays the visual content.
Declaration
Swift
@ScreenActor public var track: UInt8 { get set }
-
A value that specifies how the video is displayed within a player layer’s bounds.
Declaration
Swift
@ScreenActor public var videoGravity: AVLayerVideoGravity { get set }
-
Create a screen object.
Declaration
Swift
@ScreenActor override public init()
-
Registers a video effect.
Declaration
Swift
@ScreenActor public func registerVideoEffect(_ effect: some VideoEffect) -> Bool
-
Unregisters a video effect.
Declaration
Swift
@ScreenActor public func unregisterVideoEffect(_ effect: some VideoEffect) -> Bool
-
Declaration
Swift
@ScreenActor override public func makeImage(_ renderer: some ScreenRenderer) -> CGImage?
-
Declaration
Swift
@ScreenActor override public func makeBounds(_ size: CGSize) -> CGRect