Android Auto rejected because of audio not ducking
See original GitHub issueExoPlayer Version
2.18.1
Devices that reproduce the issue
I have no idea which device google is using for testing Android Auto.
Here is my code.
player = ExoPlayer.Builder(context).build()
player?.setHandleAudioBecomingNoisy(true)
val audioAttributes: AudioAttributes = AudioAttributes.Builder()
.setUsage(C.USAGE_MEDIA)
.setContentType(C.AUDIO_CONTENT_TYPE_MUSIC)
.setAllowedCapturePolicy(C.ALLOW_CAPTURE_BY_ALL)
.build()
player?.setAudioAttributes(audioAttributes,true)
player?.addListener(this)
Devices that do not reproduce the issue
Android auto Head unit with Android 9
Reproducible in the demo app?
No
Reproduction steps
Eligibility issues
Eligibility Issue 1: Driver distraction features -> Your app includes features that distract the driver. For example, your app does not pause or reduce the volume of the audio being played while the microphone is active. App does not perform as expectedYour app does not perform all functions properly or as expected from a user perspective.For example, when attempting to test audio functionality in Android Auto, two sets of audio are played at the same time. Driver distraction features Your app includes features that distract the driver. For example, your app does not pause or reduce the volume of the audio being played while the microphone is active.
Expected result
My app should not rejected because i am using exoplayer to handle audio focus itself.
Actual result
My App rejected due to audio focus
Media
I have no SC for this issue
Bug Report
- You will email the zip file produced by
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (4 by maintainers)
@wasmedia96 just to reassure you a little, it’s frustrating as hell, it makes everybody loose time but you get used to it, because you have no choice 😃
Same exact random rejection the 28th September, updated version code and it passed as with now nearly 30 times happened in the last 7 years of Android Auto support in that app.
Even if you appeal and they redo the tests they will ask you to republish a new APK so don’t waste time if you can’t reproduce what they say.
Good luck with your app.
Then there is probably not much we can do in this issue tracker because the player is doing the right thing. If you think the certification isn’t testing their requirements correctly, you probably need to get in touch with them to clarify that.