For AI agents: visit https://docs.jwplayer.com/players/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
These API calls are used to listen to or update the active captions track if one or more closed captions tracks are provided with a video. The JavaScript API can be used to log captions usage or build your own CC menu outside the JWX player. It is also possible to set caption styles dynamically using setCaptions() without having to reload the player.