Skip to content

Class: VideoClip ​

Typed wrapper for a loaded video asset. The loader stores a backend texture whose source wraps the media element, so element digs one level further than AudioClip does — the raw value here is the texture, not the element itself.

Playback is driven through VideoComponent, not from here; this wrapper exists for the same reason SpriteFrame does — passing a typed handle around instead of a bare id string.

Extends ​

Constructors ​

Constructor ​

ts
new VideoClip(assetId, loader?): VideoClip;

Parameters ​

ParameterType
assetIdstring
loader?IAssetLoader

Returns ​

VideoClip

Inherited from ​

AssetHandle.constructor

Properties ​

PropertyModifierTypeInherited from
assetIdreadonlystringAssetHandle.assetId

Accessors ​

element ​

Get Signature ​

ts
get element(): unknown;

The underlying media element, reached through the texture's source. Null until the asset has loaded.

Returns ​

unknown


texture ​

Get Signature ​

ts
get texture(): unknown;

The backend texture for this clip. unknown to stay backend-agnostic — cast to your backend's type when you need its API.

Returns ​

unknown

Methods ​

GetDefaultAssetLoader() ​

ts
static GetDefaultAssetLoader(): IAssetLoader | null;

Returns ​

IAssetLoader | null

Inherited from ​

AssetHandle.GetDefaultAssetLoader


getDuration() ​

ts
getDuration(): number | null;

Returns ​

number | null


getSize() ​

ts
getSize(): 
  | {
  height: number;
  width: number;
}
  | null;

Returns ​

| { height: number; width: number; } | null


isLoaded() ​

ts
isLoaded(): boolean;

Returns ​

boolean

Inherited from ​

AssetHandle.isLoaded


SetDefaultAssetLoader() ​

ts
static SetDefaultAssetLoader(loader): void;

Parameters ​

ParameterType
loaderIAssetLoader | null

Returns ​

void

Inherited from ​

AssetHandle.SetDefaultAssetLoader

© 2026 PlayAdGentic