Package com.opentok.android
Enum Class PublisherKit.VideoBitratePreset
- All Implemented Interfaces:
Serializable
,Comparable<PublisherKit.VideoBitratePreset>
,Constable
- Enclosing class:
PublisherKit
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBandwidth saver preset.Custom bitrate.Default preset.Extra bandwidth saver preset. -
Method Summary
Modifier and TypeMethodDescriptionint
get()
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.
-
Enum Constant Details
-
VideoBitratePresetDefault
Default preset. No extra restrictions are applied. This is the default mode. -
VideoBitratePresetBwSaver
Bandwidth saver preset. Applies moderate constraints to reduce bandwidth usage while maintaining reasonable video quality. -
VideoBitratePresetExtraBwSaver
Extra bandwidth saver preset. Applies aggressive constraints to minimize bandwidth usage. -
VideoBitratePresetCustom
Custom bitrate. Represents a manually configured bitrate set usingPublisherKit.setMaxVideoBitrate(int)
. Returned for tracking purposes but cannot be set directly.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
get
public int get()
-