Subtitles ********* PRESTOplay for Web Apps text-track support. Parsers: TTML, SMPTE-TT, IMSC1, WebVTT, SubRip (SRT), each format on its own page. Displayers: HTML (rich styling, consistent cross-browser) and native (browser built-in). Also covers side-loaded tracks and CEA-608 captions. To render cues, install a text displayer. The HTML text displayer ("HtmlTextDisplayer" (https://players.castlabs.com/web/latest/docs/api/clpp.htmlcue.HtmlTextDisplayer.md)) is recommended: it handles complex layouts and styling, and keeps rendering consistent across platforms. import "@castlabs/prestoplay/cl.htmlcue"; Without the HTML Cue module, the player falls back to the native text displayer based on the capabilities of the browser, which may have varying levels of support for more complex styling and layouts. Each topic has its own page: * TTML, SMPTE-TT, and IMSC1 (subtitles-ttml.txt): TTML, SMPTE-TT, and IMSC1 subtitles with the cl.ttml module: supported attributes, parser hints for legacy pixel-based manifests, and SMPTE-TT over HLS on Safari. * WebVTT and SRT (subtitles-webvtt.txt): WebVTT and SubRip (SRT) subtitles with the cl.vtt module: supported features, side-loading SRT files, and SRT conversion limitations. * Side-loaded text tracks (subtitles-sidecar.txt): Add side-loaded (sidecar) subtitle files that are not in the manifest with remoteTextTracks. * Text displayers (subtitles-displayers.txt): Render subtitles with the HTML text displayer (cl.htmlcue) or the native text displayer: setup, style priority, font size, and text style options. CEA-608 captions ================ PRESTOplay for Web Apps supports CEA-608 captions, the legacy closed-captioning standard embedded directly in the video signal. The caption parser requires "mux.js" (version 5.7.0 or later) available in the global scope: import * as muxjs from "mux.js"; window.muxjs = muxjs; See Components for the full "mux.js" installation steps.