public PlayerService()
        {
            _player = new Multimedia.Player();

            _player.PlaybackCompleted += (s, e) =>
            {
                PlaybackCompleted?.Invoke(this, e);
                State = PlayerState.Stopped;
            };
        }
示例#2
0
 public MediaPlayerImpl()
 {
     _player = CreateMediaPlayer();
     _player.PlaybackCompleted        += OnPlaybackCompleted;
     _player.BufferingProgressChanged += OnBufferingProgressChanged;
 }