Class YoutubeMixProvider
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeMixProvider
-
- All Implemented Interfaces:
YoutubeMixLoader
public class YoutubeMixProvider extends java.lang.Object implements YoutubeMixLoader
Handles loading of YouTube mixes.
-
-
Constructor Summary
Constructors Constructor Description YoutubeMixProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioPlaylistload(HttpInterface httpInterface, java.lang.String mixId, java.lang.String selectedVideoId, java.util.function.Function<AudioTrackInfo,AudioTrack> trackFactory)Loads tracks from mix in parallel into a playlist entry.
-
-
-
Method Detail
-
load
public AudioPlaylist load(HttpInterface httpInterface, java.lang.String mixId, java.lang.String selectedVideoId, java.util.function.Function<AudioTrackInfo,AudioTrack> trackFactory)
Loads tracks from mix in parallel into a playlist entry.- Specified by:
loadin interfaceYoutubeMixLoader- Parameters:
mixId- ID of the mixselectedVideoId- Selected track,AudioPlaylist.getSelectedTrack()will return this.- Returns:
- Playlist of the tracks in the mix.
-
-