use of ml.duncte123.skybot.objects.audiomanagers.spotify.SpotifyAudioSourceManager 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);
}
}
Aggregations