Exemplo n.º 1
0
        public PlayerService()
        {
            _player = new Multimedia.Player();

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