Commit 6dec8323 by krocard Committed by Ian Baker

Enable setOutputSurface workaround for Xiaomi Mi Box S

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

PiperOrigin-RevId: 350547523
parent a7cb6a02
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment