API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceVideoAssetOptions
@codexo/exojs / assets / stable
Options accepted by an asset of the built-in `video` type.
6
props
0
methods
0
events
Import
import { VideoAssetOptions } from '@codexo/exojs'Options accepted by an asset of the built-in `video` type.
Properties6
Defaults to 'anonymous'. Ignored for media built from data the application already owns, whose object URL is same-origin by construction. Unlike the transport, a non-default CORS mode IS part of asset identity: it is baked into the element, so a null and an 'anonymous' media resource for one URL are two assets, and a consumer never receives an element whose CORS mode it did not ask for.
The media event that marks the asset ready. Defaults to 'canplay': playback can start, which for streamed media deliberately does not mean the resource has fully arrived. 'loadedmetadata' resolves earlier (duration and dimensions only, nothing playable yet), 'canplaythrough' waits for the browser to predict uninterrupted playback.
mimeType?: stringMIME type for the media data. Overrides what the response or the container declared; unused by streamed media, whose type comes from the response.
playbackOptions?: Partial<PlaybackOptionsCommon playback configuration for Sound and AudioStream.>Initial playback settings forwarded to the Video instance.
stallTimeout?: numberMilliseconds to wait after a stalled event before failing the load. When omitted a stalled load waits indefinitely. Each further stalled event restarts the timer.
textureOptions?: Partial<TextureOptionsFull construction options of a texture: sampling state plus upload state.>Sampling and upload state forwarded to the Video instance's texture.
Source