Resource: Caption
A caption resource represents a YouTube caption track. A caption track is associated with exactly one YouTube video.
| JSON representation |
|---|
{ "kind": string, "etag": string, "id": string, "snippet": { "videoId": string, "lastUpdated": string, "trackKind": enum, "language": string, "name": string, "audioTrackType": enum, "isCC": boolean, "isLarge": boolean, "isEasyReader": boolean, "isDraft": boolean, "isAutoSynced": boolean, "status": enum, "failureReason": enum } } |
| Fields | |
|---|---|
kind |
Output only. Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
id |
The ID that YouTube uses to uniquely identify the caption track. |
snippet |
The |
snippet.videoId |
The ID that YouTube uses to uniquely identify the video associated with the caption track. |
snippet.lastUpdated |
The date and time when the caption track was last updated. The value is specified in ISO 8601 format. This property is read-only; setting it in a |
snippet.trackKind |
The caption track's type. Valid values of this enum field are:
|
snippet.language |
The language of the caption track. The property value is a BCP-47 language tag. |
snippet.name |
The name of the caption track. The name is intended to be visible to the user as an option during playback. The maximum supported length is 150 bytes (UTF-8 encoded). |
snippet.audioTrackType |
The type of audio track associated with the caption track. Valid values of this enum field are:
|
snippet.isCC |
Indicates whether the track contains closed captions for the deaf and hard of hearing. The default value is |
snippet.isLarge |
Indicates whether the caption track uses large text for the vision-impaired. The default value is |
snippet.isEasyReader |
Indicates whether the caption track is formatted for "easy reader," meaning it is at a third-grade level for language learners. The default value is |
snippet.isDraft |
Indicates whether the caption track is a draft. If the value is |
snippet.isAutoSynced |
Indicates whether YouTube automatically synchronized the caption track to the video's audio track. If the value is |
snippet.status |
The caption track's status. Valid values of this enum field are:
|
snippet.failureReason |
The reason that YouTube failed to process the caption track. This property is only present if the Valid values of this enum field are:
|
Methods |
|
|---|---|
|
Deletes a specified caption track. |
|
Downloads a caption track. |
|
Uploads a caption track. |
|
Returns a list of caption tracks that are associated with a specified video. |
|
Updates a caption track. |