Enum ZegoAudioCodecID

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ZegoAudioCodecID>

    public enum ZegoAudioCodecID
    extends java.lang.Enum<ZegoAudioCodecID>
    Audio codec ID.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DEFAULT
      Default, determined by the [scenario] when calling [createEngine].
      LOW
      Not recommended; if you need to use it, please contact ZEGO technical support.
      LOW2
      Not recommended; if you need to use it, please contact ZEGO technical support.
      LOW3
      Can only be used for RTC streaming; bitrate range from 6kbps to 192kbps; supports stereo; latency is around 200ms; Under the same bitrate (low bitrate), the sound quality is significantly better than [Normal] and [Normal2]; low CPU overhead.
      NORMAL
      Can be used for RTC and CDN streaming; bitrate range from 10kbps to 128kbps; supports stereo; latency is around 500ms.
      NORMAL2
      Can be used for RTC and CDN streaming; good compatibility; bitrate range from 16kbps to 192kbps; supports stereo; latency is around 350ms; the sound quality is worse than [Normal] in the same (low) bitrate.
      NORMAL3
      Not recommended; if you need to use it, please contact ZEGO technical support.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ZegoAudioCodecID getZegoAudioCodecID​(int value)  
      int value()  
      static ZegoAudioCodecID valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ZegoAudioCodecID[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • DEFAULT

        public static final ZegoAudioCodecID DEFAULT
        Default, determined by the [scenario] when calling [createEngine].
      • NORMAL

        public static final ZegoAudioCodecID NORMAL
        Can be used for RTC and CDN streaming; bitrate range from 10kbps to 128kbps; supports stereo; latency is around 500ms. Server cloud transcoding is required when communicating with the Web SDK, and it is not required when relaying to CDN.
      • NORMAL2

        public static final ZegoAudioCodecID NORMAL2
        Can be used for RTC and CDN streaming; good compatibility; bitrate range from 16kbps to 192kbps; supports stereo; latency is around 350ms; the sound quality is worse than [Normal] in the same (low) bitrate. Server cloud transcoding is required when communicating with the Web SDK, and it is not required when relaying to CDN.
      • NORMAL3

        public static final ZegoAudioCodecID NORMAL3
        Not recommended; if you need to use it, please contact ZEGO technical support. Can only be used for RTC streaming.
      • LOW

        public static final ZegoAudioCodecID LOW
        Not recommended; if you need to use it, please contact ZEGO technical support. Can only be used for RTC streaming.
      • LOW2

        public static final ZegoAudioCodecID LOW2
        Not recommended; if you need to use it, please contact ZEGO technical support. Can only be used for RTC streaming; maximum bitrate is 16kbps.
      • LOW3

        public static final ZegoAudioCodecID LOW3
        Can only be used for RTC streaming; bitrate range from 6kbps to 192kbps; supports stereo; latency is around 200ms; Under the same bitrate (low bitrate), the sound quality is significantly better than [Normal] and [Normal2]; low CPU overhead. Server cloud transcoding is not required when communicating with the Web SDK, and it is required when relaying to CDN.
    • Method Detail

      • values

        public static ZegoAudioCodecID[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ZegoAudioCodecID c : ZegoAudioCodecID.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZegoAudioCodecID valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • value

        public int value()
      • getZegoAudioCodecID

        public static ZegoAudioCodecID getZegoAudioCodecID​(int value)