public async Task PrepareAsync() { State = PlayerState.Preparing; var display = new Multimedia.Display(Forms.Context.MainWindow); _player.Display = display; await _player.PrepareAsync(); State = PlayerState.Prepared; }