FallbackStrategy
public class FallbackStrategy
A class represents the strategy that will be adopted when the device does not support all the desired Quality in QualitySelector in order to select the quality as possible.
Summary
Public methods |
|
|---|---|
static @NonNull FallbackStrategy |
higherQualityOrLowerThan(@NonNull Quality quality)Returns a fallback strategy that will choose the quality that is closest to and higher than the input quality. |
static @NonNull FallbackStrategy |
higherQualityThan(@NonNull Quality quality)Returns a fallback strategy that will choose the quality that is closest to and higher than the input quality. |
static @NonNull FallbackStrategy |
lowerQualityOrHigherThan(@NonNull Quality quality)Returns a fallback strategy that will choose the quality that is closest to and lower than the input quality. |
static @NonNull FallbackStrategy |
lowerQualityThan(@NonNull Quality quality)Returns a fallback strategy that will choose the quality that is closest to and lower than the input quality. |
Public methods
higherQualityOrLowerThan
public static @NonNull FallbackStrategy higherQualityOrLowerThan(@NonNull Quality quality)
Returns a fallback strategy that will choose the quality that is closest to and higher than the input quality.
If that can not result in a supported quality, choose the quality that is closest to and lower than the input quality.
higherQualityThan
public static @NonNull FallbackStrategy higherQualityThan(@NonNull Quality quality)
Returns a fallback strategy that will choose the quality that is closest to and higher than the input quality.
lowerQualityOrHigherThan
public static @NonNull FallbackStrategy lowerQualityOrHigherThan(@NonNull Quality quality)
Returns a fallback strategy that will choose the quality that is closest to and lower than the input quality.
If that can not result in a supported quality, choose the quality that is closest to and higher than the input quality.
lowerQualityThan
public static @NonNull FallbackStrategy lowerQualityThan(@NonNull Quality quality)
Returns a fallback strategy that will choose the quality that is closest to and lower than the input quality.