BrowsingMixin mixin
Mixin for browsing functionalities.
- Superclass constraints
- Mixin applications
Properties
- authType → AuthType
-
Get the authentication type.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Future<
Map< String, String> > -
Headers property for requests.
no setterinherited
- parser → Parser
-
Get the i18n parser.
no setterinherited
- proxy → Uri?
-
Get the proxy configuration.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asMobile<
T> (Future< T> callback()) → Future<T> -
Set client temporary as YouTube Music Mobile app for sending request.
inherited
-
checkAuth(
) → void -
Check if client is authenticated.
inherited
-
getAlbum(
String browseId, {JsonMap? requestData}) → Future< JsonMap> - Get information and tracks of an album.
-
getAlbumBrowseId(
String audioPlaylistId) → Future< String?> -
Get an album's
browseId
based on itsaudioPlaylistId
. -
getArtist(
String channelId) → Future< JsonMap> - Get information about an artist and their top releases (songs, albums, singles, videos, and related artists).
-
getArtistAlbums(
String channelId, String params, {int? limit = 100, ArtistOrderType? order}) → Future< List> - Get the full list of an artist's albums, singles or shows.
-
getBaseJsUrl(
) → Future< String> -
Extract the URL for the
base.js
script from YouTube Music. -
getHome(
{int limit = 3}) → Future< List> - Get the home page.
-
getLyrics(
String browseId, {bool timestamps = false}) → Future< JsonMap?> -
Returns lyrics of a song or video. When
timestamps
is set, lyrics are returned with timestamps, if available. -
getSignatureTimestamp(
{String? url}) → Future< int> -
Fetch the
base.js
script from YouTube Music and parse out thesignatureTimestamp
for use with getSong. -
getSong(
String videoId, {int? signatureTimestamp}) → Future< JsonMap> - Returns metadata and streaming information about a song or video.
-
getSongRelated(
String browseId) → Future< List> - Gets related content for a song. Equivalent to the content shown in the "Related" tab of the watch panel.
-
getTasteProfile(
) → Future< JsonMap> - Fetches suggested artists from taste profile (music.youtube.com/tasteprofile). Must be authenticated.
-
getUser(
String channelId) → Future< JsonMap> - Retrieve a user's page. A user may own videos or playlists.
-
getUserPlaylists(
String channelId, String params) → Future< List> - Retrieve a list of playlists for a given user.
-
getUserVideos(
String channelId, String params) → Future< List> - Retrieve a list of videos for a given user.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendGetRequest(
String url, {JsonMap? params}) → Future< Response> -
Send a GET request to YouTube Music.
inherited
-
sendRequest(
String endpoint, JsonMap body, {String additionalParams = ''}) → Future< JsonMap> -
Send a POST request to YouTube Music.
inherited
-
setTasteProfile(
List< String> artists, {JsonMap? tasteProfile}) → Future<void> - Favorites artists to see more recommendations from the artist.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited