use of com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager in project SkyBot by duncte123.
the class AudioUtils method initPlayerManager.
private void initPlayerManager() {
if (playerManager == null) {
playerManager = new DefaultAudioPlayerManager();
playerManager.enableGcMonitoring();
// Disable cookies for youtube
YoutubeAudioSourceManager youtubeAudioSourceManager = new YoutubeAudioSourceManager(true);
SoundCloudAudioSourceManager soundcloud = new SoundCloudAudioSourceManager();
playerManager.registerSourceManager(new SpotifyAudioSourceManager(youtubeAudioSourceManager));
playerManager.registerSourceManager(new ClypitAudioSourceManager());
playerManager.registerSourceManager(youtubeAudioSourceManager);
playerManager.registerSourceManager(soundcloud);
playerManager.registerSourceManager(new BandcampAudioSourceManager());
playerManager.registerSourceManager(new VimeoAudioSourceManager());
playerManager.registerSourceManager(new TwitchStreamAudioSourceManager());
playerManager.registerSourceManager(new BeamAudioSourceManager());
playerManager.registerSourceManager(new HttpAudioSourceManager());
AudioSourceManagers.registerLocalSource(playerManager);
}
}
use of com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager in project lavaplayer by sedmelluq.
the class AudioSourceManagers method registerRemoteSources.
/**
* Registers all built-in remote audio sources to the specified player manager. Local file audio source must be
* registered separately.
*
* @param playerManager Player manager to register the source managers to
*/
public static void registerRemoteSources(AudioPlayerManager playerManager) {
playerManager.registerSourceManager(new YoutubeAudioSourceManager(true));
playerManager.registerSourceManager(new SoundCloudAudioSourceManager());
playerManager.registerSourceManager(new BandcampAudioSourceManager());
playerManager.registerSourceManager(new VimeoAudioSourceManager());
playerManager.registerSourceManager(new TwitchStreamAudioSourceManager());
playerManager.registerSourceManager(new BeamAudioSourceManager());
playerManager.registerSourceManager(new HttpAudioSourceManager());
}
use of com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager in project lavaplayer by sedmelluq.
the class AudioSourceManagers method registerRemoteSources.
/**
* Registers all built-in remote audio sources to the specified player manager. Local file audio source must be
* registered separately.
*
* @param playerManager Player manager to register the source managers to
* @param containerRegistry Media container registry to be used by any probing sources.
*/
public static void registerRemoteSources(AudioPlayerManager playerManager, MediaContainerRegistry containerRegistry) {
playerManager.registerSourceManager(new YoutubeAudioSourceManager(true));
playerManager.registerSourceManager(SoundCloudAudioSourceManager.createDefault());
playerManager.registerSourceManager(new BandcampAudioSourceManager());
playerManager.registerSourceManager(new VimeoAudioSourceManager());
playerManager.registerSourceManager(new TwitchStreamAudioSourceManager());
playerManager.registerSourceManager(new BeamAudioSourceManager());
playerManager.registerSourceManager(new GetyarnAudioSourceManager());
playerManager.registerSourceManager(new HttpAudioSourceManager(containerRegistry));
}
Aggregations