Package com.opentok.android
Enum Class PublisherKit.DegradationPreference
java.lang.Object
java.lang.Enum<PublisherKit.DegradationPreference>
com.opentok.android.PublisherKit.DegradationPreference
- All Implemented Interfaces:
Serializable,Comparable<PublisherKit.DegradationPreference>,Constable
- Enclosing class:
PublisherKit
public static enum PublisherKit.DegradationPreference
extends Enum<PublisherKit.DegradationPreference>
Describes the policy that the video engine will try to follow when adapting frame rate and resolution to
limited bandwidth and CPU. This is a best effort policy. There are no guarantees on the frame rate and some frames can
still be skipped for other reasons.
For details, see
Degradation
Preference.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe video engine will try to reach a balance between reducing resolution and frame rate when necessary.The video engine will try to keep the frame rate steady but might reduce resolution if necessary.The video engine will not reduce the resolution and will try to keep the frame rate steady.The video engine will not reduce the resolution but might reduce the frame rate if necessary.Default value. -
Method Summary
Modifier and TypeMethodDescriptionintget()Returns the enum constant of this class with the specified name.static PublisherKit.DegradationPreference[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DegradationPreferenceNotSet
Default value. The video engine will decide the optimal degradation preference. -
DegradationPreferenceMaintainFrameRateAndResolution
public static final PublisherKit.DegradationPreference DegradationPreferenceMaintainFrameRateAndResolutionThe video engine will not reduce the resolution and will try to keep the frame rate steady. In some versions of the standard this option is referred to as "DISABLED", meaning that no degradation will be applied at all when under limited resources. -
DegradationPreferenceMaintainFrameRate
The video engine will try to keep the frame rate steady but might reduce resolution if necessary. -
DegradationPreferenceMaintainResolution
The video engine will not reduce the resolution but might reduce the frame rate if necessary. -
DegradationPreferenceBalanced
The video engine will try to reach a balance between reducing resolution and frame rate when necessary.
-
-
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()
-