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: : - Publisher Max Bitrate
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum Constants
Enum Constant
Description
VideoBitratePresetBwSaver
Bandwidth saver preset.
VideoBitratePresetCustom
Custom bitrate.
VideoBitratePresetDefault
Default preset.
VideoBitratePresetExtraBwSaver
Extra bandwidth saver preset.
Method Summary
All MethodsStatic MethodsInstance MethodsConcrete Methods
Modifier and Type
Method
Description
int
get()
static PublisherKit.VideoBitratePreset
valueOf(String name)
Returns the enum constant of this class with the specified name.
static PublisherKit.VideoBitratePreset[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
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()