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