public PlayerService() { _player = new Multimedia.Player(); _player.PlaybackCompleted += (s, e) => { PlaybackCompleted?.Invoke(this, e); State = PlayerState.Stopped; }; }
public MediaPlayerImpl() { _player = CreateMediaPlayer(); _player.PlaybackCompleted += OnPlaybackCompleted; _player.BufferingProgressChanged += OnBufferingProgressChanged; }