Version
Media3 1.9.2
More version details
Since Media3 version 1.9.2, button events seem to be sent twice.
We see events like KEYCODE_HEADSETHOOK received twice by onMediaButtonEvent (MediaSession).
This leads to strange playback behaviour, because we need to evaluate the events received by onMediaButtonEvent.
Reproduce with
adb shell input keyevent 79
or some wired headset with a "hook" button.
Maybe this is related to:
#2816
Devices that reproduce the issue
Reproduced with:
- Emulator Pixel 9a API 36
- Samsung SM-T220
Devices that do not reproduce the issue
None
Reproducible in the demo app?
Yes
Reproduction steps
- Play some media (audio) with Media3
- Send
adb shell input keyevent 79 or press headset hook button
Expected result
Only one event per button click or keyevent send
Actual result
Events are duplicated. Received in onMediaButtonEvent
Media
Any audio media
Bug Report
Version
Media3 1.9.2
More version details
Since Media3 version 1.9.2, button events seem to be sent twice.
We see events like
KEYCODE_HEADSETHOOKreceived twice byonMediaButtonEvent(MediaSession).This leads to strange playback behaviour, because we need to evaluate the events received by onMediaButtonEvent.
Reproduce with
adb shell input keyevent 79
or some wired headset with a "hook" button.
Maybe this is related to:
#2816
Devices that reproduce the issue
Reproduced with:
Devices that do not reproduce the issue
None
Reproducible in the demo app?
Yes
Reproduction steps
adb shell input keyevent 79or press headset hook buttonExpected result
Only one event per button click or keyevent send
Actual result
Events are duplicated. Received in onMediaButtonEvent
Media
Any audio media
Bug Report
adb bugreportto android-media-github@google.com after filing this issue.