Migration guide
***************
Migration notes for PRESTOplay for Web Apps version upgrades: v6.1 to
v6.2.
Migrating from v6.1 to v6.2
===========================
Version 6.2 simplified the player surface configuration, moved text
parsers into independent components, and dropped Internet Explorer 11
support.
Player surface
--------------
Version 6.2 removed several player surface configuration fields from
"PlayerSurfaceConfiguration"
(https://players.castlabs.com/web/latest/docs/api/clpp.PlayerSurfaceConfiguration.md)
to simplify common scenarios while keeping the API flexible:
* "moveCssToContainer" — CSS now moves from the media element to the
container by default. If you provide your own container element, the
SDK doesn't move it.
* "containerTag" — the SDK always creates a "
". If that isn't
suitable, provide your own container element.
* "mediaTag" — the SDK no longer creates a media element. Provide the
media element to the player constructor, since it's the most crucial
part of a player.
* "controls" — removed as a consequence of removing "mediaTag", since
this property was only added during media element creation.
* "css" — to make CSS management more predictable, the SDK always uses
classes defined in its stylesheet, consistent with other modules.
You can still extend the stylesheet for your needs.
The SDK also exports "IPlayerSurface"
(https://players.castlabs.com/web/latest/docs/api/clpp.IPlayerSurface.md)
to simplify DOM interactions. See Player surface for the current API.
Subtitles
---------
* Text parsers moved to independent components. To enable one, import
the script and register the component:
* The default base font size changed to 7% of the container height
(was 5%), and the background color of TTML cues inside a region
changed to transparent (was black). To restore the previous
behavior:
const config = {
textStyle: {
backgroundColor: "black",
fontSizePercent: 0.05,
},
};
* If you use the HLS-SMPTE plugin ("clpp.hlssmpte.min.js"), register
the TTML component first (see above).
* The TTML text parser is now compatible with TTML v1 and converts
pixel sizes to percentages or "em" units to build responsive
layouts. See Support for legacy manifests for details.
* "box-sizing: border-box;" was added to the ".clpp-text-cue-region"
CSS class, and "vertical-align: top;" was removed from
".clpp-container".
* The "enableEnhancedSubtitleManager" option was removed from
"PlayerConfiguration"
(https://players.castlabs.com/web/latest/docs/api/clpp.utils.PlayerConfiguration.md).
Use "enableHtmlCue" instead.
* The native text displayer always displays cues at bottom-middle.
Internet Explorer 11 support
----------------------------
Due to consistently low usage, the PRESTOplay team discontinued
Internet Explorer 11 support with the 6.2.0 release. Maintenance
support for Internet Explorer 11 continued for six months (through 01
May 2022) via 6.1.x releases, after which the team focused development
on modern playback features and experiences.