Search in sources :

Example 1 with GetyarnAudioSourceManager

use of com.sedmelluq.discord.lavaplayer.source.getyarn.GetyarnAudioSourceManager 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));
}
Also used : HttpAudioSourceManager(com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager) YoutubeAudioSourceManager(com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager) 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) GetyarnAudioSourceManager(com.sedmelluq.discord.lavaplayer.source.getyarn.GetyarnAudioSourceManager)

Aggregations

BandcampAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.bandcamp.BandcampAudioSourceManager)1 BeamAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.beam.BeamAudioSourceManager)1 GetyarnAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.getyarn.GetyarnAudioSourceManager)1 HttpAudioSourceManager (com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager)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