FallbackStrategy
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 functions |
|
|---|---|
java-static FallbackStrategy |
higherQualityOrLowerThan(quality: Quality)Returns a fallback strategy that will choose the quality that is closest to and higher than the input quality. |
java-static FallbackStrategy |
higherQualityThan(quality: Quality)Returns a fallback strategy that will choose the quality that is closest to and higher than the input quality. |
java-static FallbackStrategy |
lowerQualityOrHigherThan(quality: Quality)Returns a fallback strategy that will choose the quality that is closest to and lower than the input quality. |
java-static FallbackStrategy |
lowerQualityThan(quality: Quality)Returns a fallback strategy that will choose the quality that is closest to and lower than the input quality. |
Public functions
higherQualityOrLowerThan
java-static fun higherQualityOrLowerThan(quality: Quality): FallbackStrategy
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
java-static fun higherQualityThan(quality: Quality): FallbackStrategy
Returns a fallback strategy that will choose the quality that is closest to and higher than the input quality.
lowerQualityOrHigherThan
java-static fun lowerQualityOrHigherThan(quality: Quality): FallbackStrategy
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
java-static fun lowerQualityThan(quality: Quality): FallbackStrategy
Returns a fallback strategy that will choose the quality that is closest to and lower than the input quality.