Package dev.lavalink.youtube.clients
Class Music
- All Implemented Interfaces:
Client
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.lavalink.youtube.clients.skeleton.Client
Client.PlayabilityStatus -
Field Summary
FieldsFields inherited from class dev.lavalink.youtube.clients.skeleton.StreamingNonMusicClient
DEFAULT_SIGNATURE_KEYFields inherited from class dev.lavalink.youtube.clients.skeleton.NonMusicClient
DEFAULT_EMBED_URL, MOBILE_PLAYER_PARAMS, playlistPageCount, WEB_PLAYER_PARAMSFields inherited from interface dev.lavalink.youtube.clients.skeleton.Client
API_BASE_URL, BROWSE_URL, MUSIC_API_BASE_URL, MUSIC_SEARCH_PARAMS, MUSIC_SEARCH_URL, NEXT_URL, OAUTH_CLIENT_ATTRIBUTE, PLAYER_URL, SEARCH_PARAMS, SEARCH_URL, WATCH_URL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ClientConfiggetBaseClientConfig(@NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface) Retrieves a base client config payload to be used for requests.@NotNull String@NotNull ClientOptions@NotNull String@Nullable StringvoidpreparePlayback(@NotNull YoutubeAudioSourceManager source, @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, @NotNull String videoId) booleanbooleanMethods inherited from class dev.lavalink.youtube.clients.skeleton.MusicClient
canHandleRequest, extractSearchResultTrackJson, extractSearchResultTracks, getMusicSearchResult, loadMix, loadPlaylist, loadSearch, loadSearchMusic, loadVideo, setPlaylistPageCountMethods inherited from class dev.lavalink.youtube.clients.skeleton.StreamingNonMusicClient
extractFormat, extractFormat, getSabrClientInfo, loadFormats, preferSabrPlaybackMethods inherited from class dev.lavalink.youtube.clients.skeleton.NonMusicClient
extractAudioTrack, extractElementTrack, extractLockupTrack, extractMixPlaylistData, extractPlaylistContinuationToken, extractPlaylistContinuationVideos, extractPlaylistError, extractPlaylistName, extractPlaylistTracks, extractPlaylistVideoList, extractSearchResults, fetchEncryptedHostFlags, fetchEncryptedHostFlags, loadJsonResponse, loadMixResult, loadPlaylistResult, loadSearchResults, loadTrackInfoFromInnertube, loadTrackInfoFromInnertubeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.lavalink.youtube.clients.skeleton.Client
buildAudioTrack, findSelectedTrack, getPlayabilityStatus, getUnplayableReason, isEmbedded, requirePlayerScript, supportsOAuth, transformPlaybackUri, transformPlaybackUri
-
Field Details
-
BASE_CONFIG
-
options
-
-
Constructor Details
-
Music
public Music() -
Music
-
-
Method Details
-
getBaseClientConfig
@NotNull public @NotNull ClientConfig getBaseClientConfig(@NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface) Description copied from class:NonMusicClientRetrieves a base client config payload to be used for requests.- Specified by:
getBaseClientConfigin classMusicClient- Parameters:
httpInterface- The HTTP interface to use for fetching a config, if applicable.- Returns:
- A client configuration.
-
supportsFormatLoading
public boolean supportsFormatLoading()- Specified by:
supportsFormatLoadingin interfaceClient- Overrides:
supportsFormatLoadingin classMusicClient- Returns:
- True, if this client can be used for loading playback URLs.
-
preparePlayback
public void preparePlayback(@NotNull @NotNull YoutubeAudioSourceManager source, @NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, @NotNull @NotNull String videoId) throws IOException - Throws:
IOException
-
getPoToken
-
supportsSabrPlayback
public boolean supportsSabrPlayback()- Returns:
- true only when this client expects SABR formats.
-
getPlayerParams
- Returns:
- The parameters to use for playback. May be
null, which will avoid populating the "params" field in payloads.
-
getOptions
-
getIdentifier
- Returns:
- The unique identifier for this client.
-