I wrote my own MediaPlayer because I found no player I like, which integrates the GlobalSystemMediaTransportControlsSessions. So I wrote my own player... which also does not integrate them. So I want to change it.
So how do I register a session, pass the metadata and react on control commands (play, pause, skip next, skip previous, ...). I don't want to listen for virtual keys (like VLC) because they only work when the window is focused.