Class StreamingNonMusicClient
java.lang.Object
dev.lavalink.youtube.clients.skeleton.NonMusicClient
dev.lavalink.youtube.clients.skeleton.StreamingNonMusicClient
- All Implemented Interfaces:
Client
- Direct Known Subclasses:
Android,Ios,Tv,TvHtml5Simply,Web
-
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.NonMusicClient
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 TypeMethodDescriptionprotected booleanextractFormat(com.sedmelluq.discord.lavaplayer.tools.JsonBrowser formatJson, List<StreamFormat> formats, boolean isLive) protected booleanextractFormat(com.sedmelluq.discord.lavaplayer.tools.JsonBrowser formatJson, List<StreamFormat> formats, boolean isLive, boolean sabrAvailable) @Nullable SabrClientInfogetSabrClientInfo(@NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface) Returns the client identity used within SABR streaming requests, ornullif this client does not support SABR playback.loadFormats(@NotNull YoutubeAudioSourceManager source, @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, @NotNull String videoId) Loads streaming formats for a video.Methods inherited from class dev.lavalink.youtube.clients.skeleton.NonMusicClient
canHandleRequest, extractAudioTrack, extractMixPlaylistData, extractPlaylistContinuationToken, extractPlaylistContinuationVideos, extractPlaylistError, extractPlaylistName, extractPlaylistTracks, extractPlaylistVideoList, extractSearchResults, fetchEncryptedHostFlags, getBaseClientConfig, loadJsonResponse, loadMix, loadMixResult, loadPlaylist, loadPlaylistResult, loadSearch, loadSearchMusic, loadSearchResults, loadTrackInfoFromInnertube, loadTrackInfoFromInnertube, loadVideo, setPlaylistPageCountMethods 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, getIdentifier, getOptions, getPlayabilityStatus, getPlayerParams, getPoToken, getUnplayableReason, isEmbedded, requirePlayerScript, supportsFormatLoading, supportsOAuth, transformPlaybackUri
-
Field Details
-
DEFAULT_SIGNATURE_KEY
-
-
Constructor Details
-
StreamingNonMusicClient
public StreamingNonMusicClient()
-
-
Method Details
-
getSabrClientInfo
@Nullable public @Nullable SabrClientInfo getSabrClientInfo(@NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface) Description copied from interface:ClientReturns the client identity used within SABR streaming requests, ornullif this client does not support SABR playback.- Parameters:
httpInterface- The interface to use for any requests needed to build the info.- Returns:
- The SABR client info, or
null.
-
loadFormats
public TrackFormats loadFormats(@NotNull @NotNull YoutubeAudioSourceManager source, @NotNull @NotNull com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface httpInterface, @NotNull @NotNull String videoId) throws CannotBeLoaded, IOException Description copied from interface:ClientLoads streaming formats for a video.- Parameters:
source- The source manager responsible for this client.httpInterface- The interface to use for requests.videoId- The ID of the video to load formats for.- Throws:
CannotBeLoaded- If a video doesn't exist etc.IOException
-
extractFormat
protected boolean extractFormat(com.sedmelluq.discord.lavaplayer.tools.JsonBrowser formatJson, List<StreamFormat> formats, boolean isLive) -
extractFormat
protected boolean extractFormat(com.sedmelluq.discord.lavaplayer.tools.JsonBrowser formatJson, List<StreamFormat> formats, boolean isLive, boolean sabrAvailable)
-