EXTRA_ENCODINGS of ACTION_HDMI_AUDIO_PLUG intent of AudioManager reports EAC3 even when user has selected PCM only in Audio Output
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Using a TCL AndroidTV to play dolby digital stream(Ec3) and an external 5.1 is connected to the TV via HDMI ARC.
While deciding the AudioCapabilities we are reading the `EXTRA_ENCODINGS` of `ACTION_HDMI_AUDIO_PLUG` intent of audioManager. This reports the correct value of `ENCODING_E_AC3` when Auto or Passthrough option is selected in the android tv's 'Digital Audio Out' user settings.
But when PCM is selected in this setting, the `EXTRA_ENCODINGS` still give a value of `ENCODING_E_AC3` and `maxChannelCount` also comes to be 6 suggesting passthrough is possible.
Is this expected or a bug in Android framework? How does exoplayer detect the user setting correctly? Is there any Key that should be read by exoplayer?
Contributor guide
Assessment
This issue has not been assessed yet.