public async Task Init(int aid, int partId = 0, string bvId = "") { LoadingRing.IsActive = true; MyVideoPlayer.Close(); DetailContainer.Visibility = Visibility.Collapsed; var detail = await _videoService.GetVideoDetailAsync(aid, bvId : bvId); LoadingRing.IsActive = false; DetailContainer.Visibility = Visibility.Visible; if (detail != null) { await Init(detail, partId); } }
public async Task Init(int bangumiId, bool isep = false) { LoadingRing.IsActive = true; MyVideoPlayer.Close(); isEp = isep; DetailContainer.Visibility = Visibility.Collapsed; var detail = await _animeService.GetBangumiDetailAsync(bangumiId, isEp); LoadingRing.IsActive = false; DetailContainer.Visibility = Visibility.Visible; if (detail != null) { await Init(detail, bangumiId); } }
private void VideoPlayer_SeparateButtonClick(object sender, RoutedEventArgs e) { MyVideoPlayer.Close(); App.AppViewModel.PlayVideoSeparate(_detail, _currentPartId, false); }