Class AudioSourceManagers


  • public class AudioSourceManagers
    extends java.lang.Object
    A helper class for registering built-in source managers to a player manager.
    • Constructor Detail

      • AudioSourceManagers

        public AudioSourceManagers()
    • Method Detail

      • 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 to
        containerRegistry - 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 to
        excludedSources - 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 to
        containerRegistry - 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 to
        containerRegistry - Media container registry to be used by the local source.