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,TvHtml5Embedded,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) 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, 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, getUnplayableReason, isEmbedded, requirePlayerScript, supportsFormatLoading, supportsOAuth, transformPlaybackUri
-
Field Details
-
DEFAULT_SIGNATURE_KEY
-
-
Constructor Details
-
StreamingNonMusicClient
public StreamingNonMusicClient()
-
-
Method Details
-
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)
-