ClosedCaptionClient class
Queries related to closed captions of YouTube videos.
Constructors
- ClosedCaptionClient(YoutubeHttpClient _httpClient)
- Initializes an instance of ClosedCaptionClient
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
ClosedCaptionTrackInfo trackInfo) → Future< ClosedCaptionTrack> - Gets the actual closed caption track which is identified by the specified metadata.
-
getManifest(
dynamic videoId, {bool autoGenerated = false, List< ClosedCaptionFormat> formats = const [ClosedCaptionFormat.srv1, ClosedCaptionFormat.srv2, ClosedCaptionFormat.srv3, ClosedCaptionFormat.ttml, ClosedCaptionFormat.vtt]}) → Future<ClosedCaptionManifest> - Gets the manifest that contains information about available closed caption tracks in the specified video.
-
getSubTitles(
ClosedCaptionTrackInfo trackInfo) → Future< String> - Returns the subtitles as a string. In XML format.
-
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