Enum Class NCCallVideoResolution

java.lang.Object
java.lang.Enum<NCCallVideoResolution>
ai.nexconn.call.api.NCCallVideoResolution
All Implemented Interfaces:
Serializable, Comparable<NCCallVideoResolution>, Constable

public enum NCCallVideoResolution extends Enum<NCCallVideoResolution>
Video resolution levels.
  • Enum Constant Details

  • Method Details

    • values

      public static NCCallVideoResolution[] 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 NCCallVideoResolution 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
    • getWidth

      public int getWidth()
      Returns the resolution width.
    • getHeight

      public int getHeight()
      Returns the resolution height.
    • getMinBitRate

      public int getMinBitRate()
      Returns the recommended minimum bitrate in kbps.
    • getMaxBitRate

      public int getMaxBitRate()
      Returns the recommended maximum bitrate in kbps.
    • getLabel

      public String getLabel()
      Returns the resolution label, for example `480x640`.
    • parseVideoResolution

      public static NCCallVideoResolution parseVideoResolution(int width, int height)
      Returns the matching enum constant for the given width and height.
    • getVideoResolution

      public static NCCallVideoResolution getVideoResolution(String videoProfileLabel)
      Looks up the matching enum value from a string. A typical value is `VD_480x640_15f`; matching `480x640` is required and case-insensitive.
    • getVideoResolution

      public static NCCallVideoResolution getVideoResolution(int width, int height)
      Finds the best match for the specified resolution size.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<NCCallVideoResolution>