Enum Class PublisherKit.VideoBitratePreset

java.lang.Object
java.lang.Enum<PublisherKit.VideoBitratePreset>
com.opentok.android.PublisherKit.VideoBitratePreset
All Implemented Interfaces:
Serializable, Comparable<PublisherKit.VideoBitratePreset>, Constable
Enclosing class:
PublisherKit

public static enum PublisherKit.VideoBitratePreset extends Enum<PublisherKit.VideoBitratePreset>
Defines values for the PublisherKit.setVideoBitratePreset(VideoBitratePreset preset) method.

These presets apply predefined strategies to control video bitrate in the publisher's stream. Preset configurations and manual bitrate settings are mutually exclusive.

See Also:
  • Enum Constant Details

    • VideoBitratePresetDefault

      public static final PublisherKit.VideoBitratePreset VideoBitratePresetDefault
      Default preset. No extra restrictions are applied. This is the default mode.
    • VideoBitratePresetBwSaver

      public static final PublisherKit.VideoBitratePreset VideoBitratePresetBwSaver
      Bandwidth saver preset. Applies moderate constraints to reduce bandwidth usage while maintaining reasonable video quality.
    • VideoBitratePresetExtraBwSaver

      public static final PublisherKit.VideoBitratePreset VideoBitratePresetExtraBwSaver
      Extra bandwidth saver preset. Applies aggressive constraints to minimize bandwidth usage.
    • VideoBitratePresetCustom

      public static final PublisherKit.VideoBitratePreset VideoBitratePresetCustom
      Custom bitrate. Represents a manually configured bitrate set using PublisherKit.setMaxVideoBitrate(int). Returned for tracking purposes but cannot be set directly.
  • Method Details

    • values

      public static PublisherKit.VideoBitratePreset[] 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 PublisherKit.VideoBitratePreset 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
    • get

      public int get()