API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceMediaAssetOptions

@codexo/exojs / assets / stable

Options shared by the streaming media factories.

3
props
0
methods
0
events
Import
import { MediaAssetOptions } from '@codexo/exojs'

Options shared by the streaming media factories.

Properties3
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.
stallTimeout?: number
Milliseconds to wait after a stalled event before failing the load. When omitted a stalled load waits indefinitely. Each further stalled event restarts the timer.
Source