private async Task <bool> InitFunc() { _detailData = new DetailData(); var url = AcFunAPI.GetContentUrl(_SeleCContent.ContentId); await _detailData.GetData(url); _SeleCContent = _detailData.ListOfACContent[0]; _videoSourceData = new VideoSourceData(); //url=AcFunAPI.GetVideoSrcUrl(_SeleCContent.DetailVideos[0].) //url=AcFunAPI.GetVideoSrcUrl(_SeleCContent.DetailVideos[0].) //await _videoSourceData.GetData() return(true); }
private async void GetDetailData() { DetailData dd = new DetailData(); var url = AcFunAPI.GetContentUrl(_SeleCContent.ContentId); await dd.GetData(url); if (dd.ListOfACContent == null || dd.ListOfACContent.Count == 0) { //todo MSGSHOW("获取资源失败!"); return; } _SeleCContent = dd.ListOfACContent[0]; _selecVideo = _SeleCContent.DetailVideos[0]; GetVideoSourceData(); AddVideoInfoDetail(); }