API reference

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

C

classSubtitleAsset

@codexo/exojs / assets / stable

Dispatch token for subtitle loading (WebVTT and SRT). `loader.load(Asset.type('subtitle', 'subs.vtt'))` returns `Promise<VTTCue[]>`, and so does the same call for a `.srt` file. The format is taken from the file extension; anything else reads as WebVTT.

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

Dispatch token for subtitle loading (WebVTT and SRT).

`loader.load(Asset.type('subtitle', 'subs.vtt'))` returns `Promise<VTTCue[]>`, and so does the same call for a `.srt` file. The format is taken from the file extension; anything else reads as WebVTT.

Constructors1
new(): SubtitleAsset
Source