Search in sources :

Example 1 with SpotifyAudioSourceManager

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);
    }
}
Also used : ClypitAudioSourceManager(ml.duncte123.skybot.objects.audiomanagers.clypit.ClypitAudioSourceManager) HttpAudioSourceManager(com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager) YoutubeAudioSourceManager(com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager) SoundCloudAudioSourceManager(com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudAudioSourceManager) BeamAudioSourceManager(com.sedmelluq.discord.lavaplayer.source.beam.BeamAudioSourceManager) BandcampAudioSourceManager(com.sedmelluq.discord.lavaplayer.source.bandcamp.BandcampAudioSourceManager) TwitchStreamAudioSourceManager(com.sedmelluq.discord.lavaplayer.source.twitch.TwitchStreamAudioSourceManager) VimeoAudioSourceManager(com.sedmelluq.discord.lavaplayer.source.vimeo.VimeoAudioSourceManager) DefaultAudioPlayerManager(com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager) SpotifyAudioSourceManager(ml.duncte123.skybot.objects.audiomanagers.spotify.SpotifyAudioSourceManager)

Aggregations

DefaultAudioPlayerManager (com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager)1 BandcampAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.bandcamp.BandcampAudioSourceManager)1 BeamAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.beam.BeamAudioSourceManager)1 HttpAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager)1 SoundCloudAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudAudioSourceManager)1 TwitchStreamAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.twitch.TwitchStreamAudioSourceManager)1 VimeoAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.vimeo.VimeoAudioSourceManager)1 YoutubeAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager)1 ClypitAudioSourceManager (ml.duncte123.skybot.objects.audiomanagers.clypit.ClypitAudioSourceManager)1 SpotifyAudioSourceManager (ml.duncte123.skybot.objects.audiomanagers.spotify.SpotifyAudioSourceManager)1