VideoContentDetails class

The contentDetails object contains information about the video content, including the length of the video and an indication of whether captions are available for the video.

Constructors

VideoContentDetails({Duration? duration, VideoDimension? dimension, VideoDefinition? definition, VideoCaption? caption, bool? licensedContent, VideoProjection? projection})
VideoContentDetails.fromJsonData(Map<String, dynamic> data)
factory

Properties

caption VideoCaption?
Indicates whether captions are available for the video.
final
definition VideoDefinition?
Indicates whether the video is available in high definition (HD) or only in standard definition.
final
dimension VideoDimension?
Indicates whether the video is available in 3D or in 2D.
final
duration Duration?
The length of the video. The property value is an ISO 8601 duration. For example, for a video that is at least one minute long and less than one hour long, the duration is 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 PT15M33S indicates that the video is 15 minutes and 33 seconds long.
final
hashCode int
The hash code for this object.
no setterinherited
licensedContent bool?
Indicates whether the video represents licensed content, which means that the content was uploaded to a channel linked to a YouTube content partner and then claimed by that partner.
final
projection VideoProjection?
Specifies the projection format of the video.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited