Enable setOutputSurface workaround for Xiaomi Mi Box S

Reported by https://github.com/google/ExoPlayer/issues/8329.

PiperOrigin-RevId: 350547523
This commit is contained in:
krocard 2021-01-07 14:28:48 +00:00 committed by Ian Baker
parent a7cb6a02e4
commit 6dec83238b

View file

@ -1584,16 +1584,18 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
private static boolean evaluateDeviceNeedsSetOutputSurfaceWorkaround() {
if (Util.SDK_INT <= 28) {
// Workaround for MiTV devices which have been observed broken up to API 28.
// Workaround for MiTV and MiBox devices which have been observed broken up to API 28.
// https://github.com/google/ExoPlayer/issues/5169,
// https://github.com/google/ExoPlayer/issues/6899.
// https://github.com/google/ExoPlayer/issues/8014.
// https://github.com/google/ExoPlayer/issues/8329.
switch (Util.DEVICE) {
case "dangal":
case "dangalUHD":
case "dangalFHD":
case "magnolia":
case "machuca":
case "oneday":
return true;
default:
break; // Do nothing.