mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Detect external surround sound on Xiaomi devices
exoplayer can enable dolby passthrough on xiaomi device when get EXTERNAL_SURROUND_SOUND_KEY Signed-off-by: joakimzhang <zq15011526977@gmail.com>
This commit is contained in:
parent
eb9de7a120
commit
dc814fc37d
1 changed files with 2 additions and 1 deletions
|
|
@ -155,6 +155,7 @@ public final class AudioCapabilities {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean deviceMaySetExternalSurroundSoundGlobalSetting() {
|
private static boolean deviceMaySetExternalSurroundSoundGlobalSetting() {
|
||||||
return Util.SDK_INT >= 17 && "Amazon".equals(Util.MANUFACTURER);
|
return Util.SDK_INT >= 17 &&
|
||||||
|
("Amazon".equals(Util.MANUFACTURER) || "Xiaomi".equals(Util.MANUFACTURER));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue