Skip to content

Commit

Permalink
add registerRemoteSources overload without MediaContainerRegistry
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed May 5, 2024
1 parent 54dcf84 commit c0f90e7
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ public static void registerRemoteSources(AudioPlayerManager playerManager, Media
playerManager.registerSourceManager(new HttpAudioSourceManager(containerRegistry));
}

/**
* Registers all built-in remote audio sources to the specified player manager, excluding the specified sources.
* Local file audio source must be registered separately.
*
* @param playerManager Player manager to register the source managers to
* @param excludedSources Source managers to exclude from registration
*/
@SafeVarargs
public static void registerRemoteSources(AudioPlayerManager playerManager, Class<? extends AudioSourceManager>... excludedSources) {
registerRemoteSources(playerManager, MediaContainerRegistry.DEFAULT_REGISTRY, 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.
Expand Down

0 comments on commit c0f90e7

Please sign in to comment.