ForceReuseVideoCodecReason
enum ForceReuseVideoCodecReason : Enum<ForceReuseVideoCodecReason>
When switching the video quality, the video decoder's configuration might change as the player can't always know if the codec supports such configuration change, it destroys and recreates it. This behaviour can cause brief black screens when switching between video qualities as codec recreation can be slow.
If a codec is know to support a given configuration change without issues, the configuration can be added to the TweaksConfig.forceReuseVideoCodecReasons to always reuse the video codec and avoid the black screen.
Entries
| ColorInfoMismatch | ColorInfoMismatch The new video quality color information is not compatible |
| MaxInputSizeExceeded | MaxInputSizeExceeded The new video quality exceed the decoder's configured maximum sample size |
| MaxResolutionExceeded | MaxResolutionExceeded The new video quality exceed the decoder's configured maximum resolution |
Properties
| Name | Summary |
|---|---|
| entries | val entries: EnumEntries<ForceReuseVideoCodecReason> Returns a representation of an immutable list of all enum entries, in the order they're declared. |
Functions
| Name | Summary |
|---|---|
| valueOf | fun valueOf(value: String): ForceReuseVideoCodecReason Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
| values | fun values(): Array<ForceReuseVideoCodecReason> Returns an array containing the constants of this enum type, in the order they're declared. |