TTML, SMPTE-TT, and IMSC1 ************************* The TTML module adds support for Timed Text Markup Language (TTML) and related profiles, including SMPTE Timed Text (SMPTE-TT) and Internet Media Subtitles and Captions 1 (IMSC1) text or image subtitles. Import the module before creating the player: import "@castlabs/prestoplay/cl.ttml"; Supported features ================== Supported attributes: * "tt:begin" * "tt:end" * "tt:region" * "tt:style" * "ttp:cellResolution" * "ttp:frameRate" * "ttp:subFrameRate" * "ttp:frameRateMultiplier" * "ttp:tickRate" * "tts:backgroundColor" * "tts:color" * "tts:direction" * "tts:displayAlign" * "tts:origin" * "tts:extent" * "tts:fontFamily" * "tts:fontSize" * "tts:fontWeight" * "tts:fontStyle" * "tts:lineHeight" * "tts:opacity" * "tts:padding" * "tts:textAlign" * "tts:textOutline" * "tts:textShadow" * "tts:unicodeBidi" * "tts:writingMode" * "tts:zIndex" * "smpte:backgroundImage" SMPTE-TT and IMSC1 support covers bitmap images, such as PNG images encoded in Base64. Position the bitmap images by enclosing them in a region. Support for legacy manifests ============================ A well-designed TTML manifest defines a root container and vertical cell definitions, which let the layout adjust to different sizes, such as fullscreen mode. Some legacy manifests use pixels instead to define region or font size, for example: