Monday, February 2, 2015

Media keys (play/pause) do not work

I have Logitech K200 keyboard with multimedia keys.


When I press Play/Pause button, no event is generated by SystemMediaTransportControls.ButtonPressed or MediaControl.PlayPauseTogglePressed or MediaControl.PausePressed.


I'm able to capture Window.Current.CoreWindow.KeyUp with following args:



KeyUp VirtualKey=179 KeyStatus={ Extendend=True Released=True ScanCode=0 Down=True }

but it doesn't work when the app is in background.


Same button works perfectly with native/desktop apps, for example in WPF it generates following event:



KeyUp Key=MediaPlayPause KeyStates=None SystemKey=None

I've noticed that standard Store Apps like Video also do not work.

No comments:

Post a Comment