Enum ZegoAudioDeviceMode

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUTO
      Automatically select whether to enable system echo cancellation based on the scenario.
      COMMUNICATION
      Enable system echo cancellation.
      COMMUNICATION2
      Enable system echo cancellation.
      COMMUNICATION3
      Enable system echo cancellation.
      COMMUNICATION4
      Enable system echo cancellation.
      GENERAL
      The system echo cancellation function is disabled.
      GENERAL2
      Disable system echo cancellation.
      GENERAL3
      Disable system echo cancellation.
    • Enum Constant Detail

      • COMMUNICATION

        public static final ZegoAudioDeviceMode COMMUNICATION
        Enable system echo cancellation.
      • GENERAL

        public static final ZegoAudioDeviceMode GENERAL
        The system echo cancellation function is disabled.
      • AUTO

        public static final ZegoAudioDeviceMode AUTO
        Automatically select whether to enable system echo cancellation based on the scenario.
      • COMMUNICATION2

        public static final ZegoAudioDeviceMode COMMUNICATION2
        Enable system echo cancellation. Compared with Communication, this mode always occupies the microphone device.
      • COMMUNICATION3

        public static final ZegoAudioDeviceMode COMMUNICATION3
        Enable system echo cancellation. Compared with Communication, in this mode, the microphone is released and the media volume is reduced.
      • GENERAL2

        public static final ZegoAudioDeviceMode GENERAL2
        Disable system echo cancellation. Compared with General, this mode is not released when a microphone device is used.
      • GENERAL3

        public static final ZegoAudioDeviceMode GENERAL3
        Disable system echo cancellation. Compared with General, this mode will always occupy the microphone device.
      • COMMUNICATION4

        public static final ZegoAudioDeviceMode COMMUNICATION4
        Enable system echo cancellation. Compared with Communication, this mode of wheat after releasing the microphone, maintain the call volume.
    • Method Detail

      • values

        public static ZegoAudioDeviceMode[] 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 (ZegoAudioDeviceMode c : ZegoAudioDeviceMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZegoAudioDeviceMode 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()
      • getZegoAudioDeviceMode

        public static ZegoAudioDeviceMode getZegoAudioDeviceMode​(int value)