mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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() {
|
private static boolean evaluateDeviceNeedsSetOutputSurfaceWorkaround() {
|
||||||
if (Util.SDK_INT <= 28) {
|
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/5169,
|
||||||
// https://github.com/google/ExoPlayer/issues/6899.
|
// https://github.com/google/ExoPlayer/issues/6899.
|
||||||
// https://github.com/google/ExoPlayer/issues/8014.
|
// https://github.com/google/ExoPlayer/issues/8014.
|
||||||
|
// https://github.com/google/ExoPlayer/issues/8329.
|
||||||
switch (Util.DEVICE) {
|
switch (Util.DEVICE) {
|
||||||
case "dangal":
|
case "dangal":
|
||||||
case "dangalUHD":
|
case "dangalUHD":
|
||||||
case "dangalFHD":
|
case "dangalFHD":
|
||||||
case "magnolia":
|
case "magnolia":
|
||||||
case "machuca":
|
case "machuca":
|
||||||
|
case "oneday":
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
break; // Do nothing.
|
break; // Do nothing.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue