Videos\Text tracks

Get a specific text track

Changed on

This method returns a single text track from the specified video.

get/videos/{video_id}/texttracks/{texttrack_id}

Request

Path parameters

texttrack_idnumber required
Example:12345

The ID of the text track.

video_idnumber required
Example:258684937

The ID of the video.

Response

The text track was returned.

activeboolean required

Whether this text track is active.

hls_linkstring required

The read-only URL of the text track file, intended for use with HLS playback.

hls_link_expires_timestring required

The time in ISO 8601 format when the read-only HLS playback text track file expires.

languagestring nullable required

The language code for this text track. To see a full list, request /languages?filter=texttrack.

linkstring required

The read-only URL of the text track file. You can upload to this link when you create it for the first time.

link_expires_timestring required

The time in ISO 8601 format when the text track link expires.

namestring nullable required

The descriptive name of this text track.

type'captions' | 'subtitles' nullable required

The type of the text track:

Option descriptions:

  • captions - The text track is for captions.
  • subtitles - The text track is for subtitles.
uristring required

The relative URI of the text track.

Example response

{
  "active": true,
  "hls_link_expires_time": "1494888499",
  "language": "en-US",
  "link_expires_time": "1494888499",
  "name": "English Subtitles",
  "type": "captions",
  "uri": "/videos/258684937/texttracks/12345"
}

Changes