Interface CodecRegistry

All Known Implementing Classes:
DefaultCodecRegistry, ExperimentalCodecRegistry

public interface CodecRegistry
Registry for managing available codec capabilities. Allows users to register custom codecs.
  • Method Details

    • register

      void register(@NotNull CodecInfo codec)
      Registers a codec capability.
      Parameters:
      codec - the codec info to register
      Throws:
      IllegalArgumentException - if codec with same name already exists
    • unregister

      boolean unregister(@NotNull String codecName)
      Unregisters a codec by name.
      Parameters:
      codecName - the name of the codec to unregister
      Returns:
      true if codec was registered, false if not found
    • getByName

      @Nullable CodecInfo getByName(@NotNull String name)
      Gets codec info by name.
      Parameters:
      name - the codec name (case-insensitive)
      Returns:
      CodecInfo or null if not found
    • getAudioCodecs

      @NotNull Collection<CodecInfo> getAudioCodecs()
      Gets all registered audio codecs.
      Returns:
      collection of audio codec infos
    • getVideoCodecs

      @NotNull Collection<CodecInfo> getVideoCodecs()
      Gets all registered video codecs.
      Returns:
      collection of video codec infos
    • getAllCodecs

      @NotNull Collection<CodecInfo> getAllCodecs()
      Gets all registered codecs (audio + video).
      Returns:
      collection of all codec infos