Beispiel #1
0
        public void Pause()
        {
            if (BackgroundMediaPlayer.Current.CurrentState != MediaPlayerState.Paused)
            {
                Volume1To0AndPause();
            }

            autoPlay = false;
            systemMediaTransportControl.PlaybackStatus = MediaPlaybackStatus.Paused;

            ForegroundCommunicator.SendPause();

            DeaktivateSystemMediaTransportControlButtons();
            LibraryLib.CurrentSong.Current.Save();
        }