API reference

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

C

classSubtitleFactory

@codexo/exojs / resources / stable

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.

1
props
5
methods
0
events
Import
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.

Constructors 1
new(): SubtitleFactory
Methods 5
create(source: SubtitleIntermediate): Promise<VTTCue[]>
createObjectUrl(blob: Blob): string
destroy(): void
process(response: Response): Promise<SubtitleIntermediate>
revokeObjectUrl(objectUrl: string): void
Properties 1
storageName: "subtitle"
Source