PublisherKit.DegradationPreference

public static final enum DegradationPreference

Enclosing class: PublisherKit

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.

Enum constants

Name Description
DegradationPreferenceNotSet Default value. The video engine will decide the optimal degradation preference.
DegradationPreferenceMaintainFrameRateAndResolution The 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.

Methods

Name Description
get() → {int}
(static) valueOf(name) → {PublisherKit.DegradationPreference}
(static) values() → {PublisherKit.DegradationPreference[]}

get() → {int}

Returns:

int

(static) valueOf(name) → {PublisherKit.DegradationPreference}

Parameters:
Name Type Description
name String
Returns:

PublisherKit.DegradationPreference

(static) values() → {PublisherKit.DegradationPreference[]}

Returns:

PublisherKit.DegradationPreference[]