Created
February 27, 2016 00:02
-
-
Save seksenov/37e1b19145645a09588d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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