It is possible to set a standard subtitle through the API. Viewers of the respective video will then automatically see the subtitle without the need to activate it by themselves.
Get subtitles
To determine which subtitles are available for a video. A list of all available subtitles is returned.
Panel | ||
---|---|---|
| ||
Player.getTextTracks() |
Sample response
Code Block | ||||
---|---|---|---|---|
| ||||
[Object, Object] 0: Object id: "0" label: "Ti?ng Vi?t" language: "vi" proto: Object 1: Object id: "1" label: "English" language: "en" proto: Object length: 2 proto: Array(0) |
Set subtitle
Panel | ||
---|---|---|
| ||
Player.setTextTrack(trackId) |
Parameter | Type | Description |
---|---|---|
trackId | string | ID of the subtitle track that you want to set as standard. |
Disable subtitle
Disables the standard subtitlessubtitle that you have set.
Panel | ||
---|---|---|
| ||
Player.disableTextTrack |
movingimage EVP GmbH | Copyright © 2005–2021 movingimage EVP GmbH. The product names mentioned may be registered trademarks of the relevant manufacturer. Video editing, video streaming, video hosting, live streaming, video galleries, video range, video ads, video SEO, video cloud for websites and everything as a cloud solution - no software installation necessary.