private async void OnPlayPauseClick(object sender, RoutedEventArgs e) { if (api.GetStatus().IsPlaying) { await api.Pause(); } else { await api.Play(); } }