private void _player_CurrentStateChanged(IMediaPlayer sender, object args)
        {
            _controllerHandler?.NotifyControllerStateChanged(sender.CurrentState);
            switch (sender.CurrentState)
            {
            case MediaPlayerState.Closed:
                _mtControls.PlaybackStatus = MediaPlaybackStatus.Closed;
                break;

            case MediaPlayerState.Opening:
                _mtControls.PlaybackStatus = MediaPlaybackStatus.Changing;
                break;

            case MediaPlayerState.Buffering:
                _mtControls.PlaybackStatus = MediaPlaybackStatus.Changing;
                break;

            case MediaPlayerState.Playing:
                _mtControls.PlaybackStatus = MediaPlaybackStatus.Playing;
                break;

            case MediaPlayerState.Paused:
                _mtControls.PlaybackStatus = MediaPlaybackStatus.Paused;
                break;

            case MediaPlayerState.Stopped:
                _mtControls.PlaybackStatus = MediaPlaybackStatus.Stopped;
                break;

            default:
                break;
            }
        }
 private void CurrentPlayer_CurrentStateChanged(Windows.Media.Playback.MediaPlayer sender, object args)
 {
     _playerSession?.NotifyControllerStateChanged(sender.CurrentState);
 }