Esempio n. 1
0
        private void OnStatusChanged(MediaPlaybackSession sender, object args)
        {
            CancelPlayingHandler();

            if ((MediaPlaybackState)args == MediaPlaybackState.Playing)
            {
                StartPlayingHandler();
            }
        }
Esempio n. 2
0
        public MediaPlayer()
        {
            PlaybackSession = new MediaPlaybackSession(this);

            Initialize();
        }
Esempio n. 3
0
 async private void PlaybackSession_PositionChanged(Windows.Media.Playback.MediaPlaybackSession sender, object args)
 {
     await TestSomethingAsync(sender);
 }