API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSubtitleFactory
AssetFactory implementation that parses WebVTT (`.vtt`) and SubRip (`.srt`) subtitle files and produces an array of VTTCue instances. Format is detected from the file extension of the response URL; unknown extensions default to VTT parsing. VTT cue settings (`align`, `line`, `position`, `size`, `vertical`) are applied; SRT cues retain default positional properties.
import { SubtitleFactory } from '@codexo/exojs' AssetFactory implementation that parses WebVTT (`.vtt`) and SubRip (`.srt`) subtitle files and produces an array of VTTCue instances.
Format is detected from the file extension of the response URL; unknown extensions default to VTT parsing. VTT cue settings (`align`, `line`, `position`, `size`, `vertical`) are applied; SRT cues retain default positional properties.
new(): SubtitleFactory create(source: SubtitleIntermediate): Promise<VTTCue[]> createObjectUrl(blob: Blob): string destroy(): void process(response: Response): Promise<SubtitleIntermediate> revokeObjectUrl(objectUrl: string): void storageName: "subtitle"