Skip to content

Instantly share code, notes, and snippets.

@seksenov
Created February 27, 2016 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seksenov/37e1b19145645a09588d to your computer and use it in GitHub Desktop.
Save seksenov/37e1b19145645a09588d to your computer and use it in GitHub Desktop.
if (typeof Windows !== 'undefined') {
var systemMediaControls = Windows.Media.SystemMediaTransportControls.getForCurrentView();
systemMediaControls.addEventListener("buttonpressed", systemMediaControlsButtonPressed, false);
systemMediaControls.isPlayEnabled = true;
systemMediaControls.isPauseEnabled = true;
systemMediaControls.isStopEnabled = true;
systemMediaControls.playbackStatus = Windows.Media.MediaPlaybackStatus.closed;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment