google_api_you_tube v0.4.0 GoogleApi.YouTube.V3.Model.CaptionSnippet View Source

Basic details about a caption track, such as its language and name.

Attributes

  • audioTrackType (String.t): The type of audio track associated with the caption track. Defaults to: null.

    • Enum - one of [commentary, descriptive, primary, unknown]
  • failureReason (String.t): The reason that YouTube failed to process the caption track. This property is only present if the state property's value is failed. Defaults to: null.

    • Enum - one of [processingFailed, unknownFormat, unsupportedFormat]
  • isAutoSynced (boolean()): Indicates whether YouTube synchronized the caption track to the audio track in the video. The value will be true if a sync was explicitly requested when the caption track was uploaded. For example, when calling the captions.insert or captions.update methods, you can set the sync parameter to true to instruct YouTube to sync the uploaded track to the video. If the value is false, YouTube uses the time codes in the uploaded caption track to determine when to display captions. Defaults to: null.
  • isCC (boolean()): Indicates whether the track contains closed captions for the deaf and hard of hearing. The default value is false. Defaults to: null.
  • isDraft (boolean()): Indicates whether the caption track is a draft. If the value is true, then the track is not publicly visible. The default value is false. Defaults to: null.
  • isEasyReader (boolean()): Indicates whether caption track is formatted for "easy reader," meaning it is at a third-grade level for language learners. The default value is false. Defaults to: null.
  • isLarge (boolean()): Indicates whether the caption track uses large text for the vision-impaired. The default value is false. Defaults to: null.
  • language (String.t): The language of the caption track. The property value is a BCP-47 language tag. Defaults to: null.
  • lastUpdated (DateTime.t): The date and time when the caption track was last updated. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. Defaults to: null.
  • name (String.t): The name of the caption track. The name is intended to be visible to the user as an option during playback. Defaults to: null.
  • status (String.t): The caption track's status. Defaults to: null.

    • Enum - one of [failed, serving, syncing]
  • trackKind (String.t): The caption track's type. Defaults to: null.

    • Enum - one of [ASR, forced, standard]
  • videoId (String.t): The ID that YouTube uses to uniquely identify the video associated with the caption track. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.YouTube.V3.Model.CaptionSnippet{
  audioTrackType: any(),
  failureReason: any(),
  isAutoSynced: any(),
  isCC: any(),
  isDraft: any(),
  isEasyReader: any(),
  isLarge: any(),
  language: any(),
  lastUpdated: DateTime.t(),
  name: any(),
  status: any(),
  trackKind: any(),
  videoId: any()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.