mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
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:
parent
a7cb6a02e4
commit
6dec83238b
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue