Package io.agora.rtc2

Enum Class Constants.MultipathMode

java.lang.Object
java.lang.Enum<Constants.MultipathMode>
io.agora.rtc2.Constants.MultipathMode
All Implemented Interfaces:
Serializable, Comparable<Constants.MultipathMode>, Constable
Enclosing class:
Constants

public static enum Constants.MultipathMode extends Enum<Constants.MultipathMode>
Since:
4.6.0
  • Enum Constant Details

    • MULTIPATH_MODE_DUPLICATE

      public static final Constants.MultipathMode MULTIPATH_MODE_DUPLICATE
      0: Duplicate mode, where data is sent over multiple paths simultaneously. This mode ensures redundancy and can improve reliability in data transmission.
    • MULTIPATH_MODE_DYNAMIC

      public static final Constants.MultipathMode MULTIPATH_MODE_DYNAMIC
      1: Dynamic mode, where the SDK dynamically selects the best path for data transmission. This mode optimizes the path based on current network conditions to enhance performance.
  • Method Details

    • values

      public static Constants.MultipathMode[] 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 Constants.MultipathMode 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
    • getValue

      public static int getValue(Constants.MultipathMode mode)