@svta/common-media-library
    Preparing search index...

    Type Alias WebVttParserOptionsBeta

    Options for the WebVtt parser.

    type WebVttParserOptions = {
        createCue?: WebVttCueFactory;
        createRegion?: WebVttRegionFactory;
        useDomTypes?: boolean;
    }
    Index

    Properties

    createCue?: WebVttCueFactory

    A factory for creating WebVttCue objects.

    By default the parser will create DOM VTTCue objects for each cue. In some environments, like node or a web worker, this class does not exist. In this case, you can provide a custom factory function that creates a custom cue object.

    VTTCue

    createRegion?: WebVttRegionFactory

    A factory for creating WebVttRegion objects.

    By default the parser will create DOM VTTRegion objects for each region. In some environments, like node or a web worker, this class does not exist. In this case, you can provide a custom factory function that creates a custom region object.

    useDomTypes?: boolean

    Whether to use DOM VTTCue and VTTRegion or generic objects. If createCue or createRegion are provided, they will be used instead of the default factory functions.

    true