I deleted the logs after saving the debug.log file
What I did in a short time when debug was activated:
- Press Previous (expectation: previous song or start of current song if nothing is before) → OK
- Hold Previous for a few sec (expectation: rewind some time / go back in the song a bit) → Nothing happened
- Hold Next for a few sec (expectation: skip some time / go forward in the song a bit) → Nothing happened
- Press Next (expectation: next song) → OK
Presses:
2024-04-19 17:46:58.370 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MEDIA_PREVIOUS, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-04-19 17:46:58.370 Verbose/MediaSessionCallback: onSkipToPrevious
2024-04-19 17:46:58.388 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MEDIA_PREVIOUS, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-04-19 17:46:58.465 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MEDIA_PLAY, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-04-19 17:46:58.485 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MEDIA_PLAY, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-04-19 17:47:01.074 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MEDIA_REWIND, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-04-19 17:47:02.092 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MEDIA_REWIND, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-04-19 17:47:02.562 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MEDIA_REWIND, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-04-19 17:47:04.512 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MEDIA_FAST_FORWARD, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-04-19 17:47:05.235 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MEDIA_FAST_FORWARD, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-04-19 17:47:06.232 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MEDIA_NEXT, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
2024-04-19 17:47:06.232 Verbose/MediaSessionCallback: onSkipToNext
2024-04-19 17:47:06.255 Verbose/MediaSessionCallback: onMediaButton: android.intent.action.MEDIA_BUTTON - KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MEDIA_NEXT, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=0, downTime=0, deviceId=-1, source=0x0, displayId=-1 }
Seems like it properly catches Previous, Rewind, FastForward and Next. And it seems to log Action_Down when I press the button and Action_Up when I release my finger. For Previous and Next it seems to understand what to do and that’s also visible in that log, whereas the other ones are registered but no action is taken.
There is also literally no other log entry between 17:46:58.465 and 17:47:06.232
Hope this sheds some light on the workings