Amazon Vinyl
    Preparing search index...

    Class HtmlTextTrackRenderer

    A TextTrackRenderer that paints cues as HTML into element. Mount element over the video; it stacks cues at the bottom, centered, and positions any cue that carries explicit WebVTT settings. The DOM track is expected to be 'hidden' so only this renderer paints.

    Implements

    Index
    element: HTMLElement

    The overlay container to mount over the video.

    • Supplies the CSS bodies of the track's WebVTT STYLE blocks (which carry ::cue rules), so the renderer can style cue classes. Optional — a renderer may ignore authored styles.

      Parameters

      • styles: readonly string[]

      Returns void