Package moe.kyokobot.koe.codec
Interface CodecRegistry
- All Known Implementing Classes:
DefaultCodecRegistry,ExperimentalCodecRegistry
public interface CodecRegistry
Registry for managing available codec capabilities.
Allows users to register custom codecs.
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<CodecInfo>Gets all registered codecs (audio + video).@NotNull Collection<CodecInfo>Gets all registered audio codecs.@Nullable CodecInfoGets codec info by name.@NotNull Collection<CodecInfo>Gets all registered video codecs.voidRegisters a codec capability.booleanunregister(@NotNull String codecName) Unregisters a codec by name.
-
Method Details
-
register
Registers a codec capability.- Parameters:
codec- the codec info to register- Throws:
IllegalArgumentException- if codec with same name already exists
-
unregister
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
Gets codec info by name.- Parameters:
name- the codec name (case-insensitive)- Returns:
- CodecInfo or null if not found
-
getAudioCodecs
Gets all registered audio codecs.- Returns:
- collection of audio codec infos
-
getVideoCodecs
Gets all registered video codecs.- Returns:
- collection of video codec infos
-
getAllCodecs
Gets all registered codecs (audio + video).- Returns:
- collection of all codec infos
-