Class AudioSourceManagers
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers
-
public class AudioSourceManagers extends java.lang.ObjectA helper class for registering built-in source managers to a player manager.
-
-
Constructor Summary
Constructors Constructor Description AudioSourceManagers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregisterLocalSource(AudioPlayerManager playerManager)Registers the local file source manager to the specified player manager.static voidregisterLocalSource(AudioPlayerManager playerManager, MediaContainerRegistry containerRegistry)Registers the local file source manager to the specified player manager.static voidregisterRemoteSources(AudioPlayerManager playerManager)SeeregisterRemoteSources(AudioPlayerManager, MediaContainerRegistry), but with default containers.static voidregisterRemoteSources(AudioPlayerManager playerManager, MediaContainerRegistry containerRegistry)Registers all built-in remote audio sources to the specified player manager.static voidregisterRemoteSources(AudioPlayerManager playerManager, MediaContainerRegistry containerRegistry, java.lang.Class<? extends AudioSourceManager>... excludedSources)Registers all built-in remote audio sources to the specified player manager, excluding the specified sources.static voidregisterRemoteSources(AudioPlayerManager playerManager, java.lang.Class<? extends AudioSourceManager>... excludedSources)Registers all built-in remote audio sources to the specified player manager, excluding the specified sources.
-
-
-
Method Detail
-
registerRemoteSources
public static void registerRemoteSources(AudioPlayerManager playerManager)
SeeregisterRemoteSources(AudioPlayerManager, MediaContainerRegistry), but with default containers.
-
registerRemoteSources
public static void registerRemoteSources(AudioPlayerManager playerManager, MediaContainerRegistry containerRegistry)
Registers all built-in remote audio sources to the specified player manager. Local file audio source must be registered separately.- Parameters:
playerManager- Player manager to register the source managers tocontainerRegistry- Media container registry to be used by any probing sources.
-
registerRemoteSources
@SafeVarargs public static void registerRemoteSources(AudioPlayerManager playerManager, java.lang.Class<? extends AudioSourceManager>... excludedSources)
Registers all built-in remote audio sources to the specified player manager, excluding the specified sources. Local file audio source must be registered separately.- Parameters:
playerManager- Player manager to register the source managers toexcludedSources- Source managers to exclude from registration
-
registerRemoteSources
@SafeVarargs public static void registerRemoteSources(AudioPlayerManager playerManager, MediaContainerRegistry containerRegistry, java.lang.Class<? extends AudioSourceManager>... excludedSources)
Registers all built-in remote audio sources to the specified player manager, excluding the specified sources. Local file audio source must be registered separately.- Parameters:
playerManager- Player manager to register the source managers tocontainerRegistry- Media container registry to be used by any probing sources.excludedSources- Source managers to exclude from registration
-
registerLocalSource
public static void registerLocalSource(AudioPlayerManager playerManager)
Registers the local file source manager to the specified player manager.- Parameters:
playerManager- Player manager to register the source manager to
-
registerLocalSource
public static void registerLocalSource(AudioPlayerManager playerManager, MediaContainerRegistry containerRegistry)
Registers the local file source manager to the specified player manager.- Parameters:
playerManager- Player manager to register the source manager tocontainerRegistry- Media container registry to be used by the local source.
-
-