mirror of
https://github.com/androidx/media.git
synced 2025-05-11 17:49:52 +08:00
Expand setOutputSurface workaround to more FireOS devices
Issue: google/ExoPlayer#10454 PiperOrigin-RevId: 462375294 (cherry picked from commit e5a1e00b369b4d5ae7ac2c4c6a584b503098aa02)
This commit is contained in:
parent
83bebd3339
commit
8f30563192
@ -1760,6 +1760,21 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||||||
// https://github.com/google/ExoPlayer/issues/4468#issuecomment-459291645.
|
// https://github.com/google/ExoPlayer/issues/4468#issuecomment-459291645.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
switch (Util.MODEL) {
|
||||||
|
// Workaround for some Fire OS devices.
|
||||||
|
case "AFTA":
|
||||||
|
case "AFTN":
|
||||||
|
case "AFTR":
|
||||||
|
case "AFTEU011":
|
||||||
|
case "AFTEU014":
|
||||||
|
case "AFTEUFF014":
|
||||||
|
case "AFTJMST12":
|
||||||
|
case "AFTKMST12":
|
||||||
|
case "AFTSO001":
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
break; // Do nothing.
|
||||||
|
}
|
||||||
if (Util.SDK_INT <= 26) {
|
if (Util.SDK_INT <= 26) {
|
||||||
// In general, devices running API level 27 or later should be unaffected unless observed
|
// In general, devices running API level 27 or later should be unaffected unless observed
|
||||||
// otherwise. Enable the workaround on a per-device basis. Works around:
|
// otherwise. Enable the workaround on a per-device basis. Works around:
|
||||||
@ -1926,8 +1941,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||||||
break; // Do nothing.
|
break; // Do nothing.
|
||||||
}
|
}
|
||||||
switch (Util.MODEL) {
|
switch (Util.MODEL) {
|
||||||
case "AFTA":
|
|
||||||
case "AFTN":
|
|
||||||
case "JSN-L21":
|
case "JSN-L21":
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user