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

Details about the content of a YouTube Video.

Attributes

  • caption (String.t): The value of captions indicates whether the video has captions or not. Defaults to: null.

    • Enum - one of [false, true]
  • contentRating (ContentRating): Specifies the ratings that the video received under various rating schemes. Defaults to: null.
  • countryRestriction (AccessPolicy): The countryRestriction object contains information about the countries where a video is (or is not) viewable. Defaults to: null.
  • definition (String.t): The value of definition indicates whether the video is available in high definition or only in standard definition. Defaults to: null.

    • Enum - one of [hd, sd]
  • dimension (String.t): The value of dimension indicates whether the video is available in 3D or in 2D. Defaults to: null.
  • duration (String.t): The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which the letters PT indicate that the value specifies a period of time, and the letters M and S refer to length in minutes and seconds, respectively. The # characters preceding the M and S letters are both integers that specify the number of minutes (or seconds) of the video. For example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long. Defaults to: null.
  • hasCustomThumbnail (boolean()): Indicates whether the video uploader has provided a custom thumbnail image for the video. This property is only visible to the video uploader. Defaults to: null.
  • licensedContent (boolean()): The value of is_license_content indicates whether the video is licensed content. Defaults to: null.
  • projection (String.t): Specifies the projection format of the video. Defaults to: null.

    • Enum - one of [360, rectangular]
  • regionRestriction (VideoContentDetailsRegionRestriction): The regionRestriction object contains information about the countries where a video is (or is not) viewable. The object will contain either the contentDetails.regionRestriction.allowed property or the contentDetails.regionRestriction.blocked property. 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.VideoContentDetails{
  caption: any(),
  contentRating: GoogleApi.YouTube.V3.Model.ContentRating.t(),
  countryRestriction: GoogleApi.YouTube.V3.Model.AccessPolicy.t(),
  definition: any(),
  dimension: any(),
  duration: any(),
  hasCustomThumbnail: any(),
  licensedContent: any(),
  projection: any(),
  regionRestriction:
    GoogleApi.YouTube.V3.Model.VideoContentDetailsRegionRestriction.t()
}

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.