Skip to content

Commit c0f90e7

Browse files
committed
add registerRemoteSources overload without MediaContainerRegistry
1 parent 54dcf84 commit c0f90e7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

main/src/main/java/com/sedmelluq/discord/lavaplayer/source/AudioSourceManagers.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ public static void registerRemoteSources(AudioPlayerManager playerManager, Media
4747
playerManager.registerSourceManager(new HttpAudioSourceManager(containerRegistry));
4848
}
4949

50+
/**
51+
* Registers all built-in remote audio sources to the specified player manager, excluding the specified sources.
52+
* Local file audio source must be registered separately.
53+
*
54+
* @param playerManager Player manager to register the source managers to
55+
* @param excludedSources Source managers to exclude from registration
56+
*/
57+
@SafeVarargs
58+
public static void registerRemoteSources(AudioPlayerManager playerManager, Class<? extends AudioSourceManager>... excludedSources) {
59+
registerRemoteSources(playerManager, MediaContainerRegistry.DEFAULT_REGISTRY, excludedSources);
60+
}
61+
5062
/**
5163
* Registers all built-in remote audio sources to the specified player manager, excluding the specified sources.
5264
* Local file audio source must be registered separately.

0 commit comments

Comments
 (0)