YoutubeApiClient class

Constructors

YoutubeApiClient(Map<String, dynamic> payload, String apiUrl, {Map<String, dynamic> headers = const {}})
const
YoutubeApiClient.fromJson(Map<String, dynamic> json)

Properties

apiUrl String
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
final
payload Map<String, dynamic>
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

android → const YoutubeApiClient
This provides also muxed streams but seems less reliable than ios. If you require an android client use androidVr instead.
androidMusic → const YoutubeApiClient
Has limited streams but doesn't require signature deciphering. As opposed to android, this works only for music.
androidVr → const YoutubeApiClient
Provides high quality videos (not only VR).
ios → const YoutubeApiClient
Has limited streams but doesn't require signature deciphering.
mediaConnect → const YoutubeApiClient
safari → const YoutubeApiClient
This client also provide high quality muxed stream in the HLS manifest. The streams are in m3u8 format.
tv → const YoutubeApiClient
Used to bypass same restriction on videos.
tvSimplyEmbedded → const YoutubeApiClient
Work even of restricted videos and provides low quality muxed streams, but requires signature deciphering. Does not work if the video has the embedding disabled.
webCreator → const YoutubeApiClient