Enum Class IngressCodec

java.lang.Object
java.lang.Enum<IngressCodec>
com.oracle.media.model.api.enums.IngressCodec
All Implemented Interfaces:
Serializable, Comparable<IngressCodec>, Constable

public enum IngressCodec extends Enum<IngressCodec>
Defines supported codec types for use with ingress media streams.

The IngressCodec enumeration provides standard codec names and a utility method for case-insensitive lookup.

Example usage:


 IngressCodec codec = IngressCodec.OPUS;
 String name = codec.getCodecName(); // "OPUS"

 IngressCodec parsed = IngressCodec.fromCodecName("pcmu"); // returns IngressCodec.PCMU
 

Enum values:

  • PCMU – The G.711 μ-law audio codec.
  • PCMA – The G.711 A-law audio codec.
  • AMR – The Adaptive Multi-Rate audio codec.
  • OPUS – The OPUS audio codec.

Author:
Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
  • Enum Constant Details

  • Method Details

    • values

      public static IngressCodec[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IngressCodec valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCodecName

      public String getCodecName()
    • fromCodecName

      public static IngressCodec fromCodecName(String value)