Enum ZegoVideoConfigPreset

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

    public enum ZegoVideoConfigPreset
    extends java.lang.Enum<ZegoVideoConfigPreset>
    Video configuration resolution and bitrate preset enumeration. The preset resolutions are adapted for mobile and desktop. On mobile, height is longer than width, and desktop is the opposite. For example, 1080p is actually 1080(w) x 1920(h) on mobile and 1920(w) x 1080(h) on desktop.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      PRESET_1080P
      Set the resolution to 1920x1080, the default is 15 fps, the code rate is 3000 kbps
      PRESET_180P
      Set the resolution to 320x180, the default is 15 fps, the code rate is 300 kbps
      PRESET_270P
      Set the resolution to 480x270, the default is 15 fps, the code rate is 400 kbps
      PRESET_360P
      Set the resolution to 640x360, the default is 15 fps, the code rate is 600 kbps
      PRESET_540P
      Set the resolution to 960x540, the default is 15 fps, the code rate is 1200 kbps
      PRESET_720P
      Set the resolution to 1280x720, the default is 15 fps, the code rate is 1500 kbps
    • Enum Constant Detail

      • PRESET_180P

        public static final ZegoVideoConfigPreset PRESET_180P
        Set the resolution to 320x180, the default is 15 fps, the code rate is 300 kbps
      • PRESET_270P

        public static final ZegoVideoConfigPreset PRESET_270P
        Set the resolution to 480x270, the default is 15 fps, the code rate is 400 kbps
      • PRESET_360P

        public static final ZegoVideoConfigPreset PRESET_360P
        Set the resolution to 640x360, the default is 15 fps, the code rate is 600 kbps
      • PRESET_540P

        public static final ZegoVideoConfigPreset PRESET_540P
        Set the resolution to 960x540, the default is 15 fps, the code rate is 1200 kbps
      • PRESET_720P

        public static final ZegoVideoConfigPreset PRESET_720P
        Set the resolution to 1280x720, the default is 15 fps, the code rate is 1500 kbps
      • PRESET_1080P

        public static final ZegoVideoConfigPreset PRESET_1080P
        Set the resolution to 1920x1080, the default is 15 fps, the code rate is 3000 kbps
    • Method Detail

      • values

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

        public static ZegoVideoConfigPreset 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()