示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
 private void VideoPlayer_SeparateButtonClick(object sender, RoutedEventArgs e)
 {
     MyVideoPlayer.Close();
     App.AppViewModel.PlayVideoSeparate(_detail, _currentPartId, false);
 }