示例#1
0
        private async void GetVideo(string videoUrl)
        {
            UpdateStatus("Loading video information, please wait ...");

            video = await Task.Run(new Func <Task <Core.Utils.ExtendedVideo> > (async() =>
            {
                return(await core.GetExtendedVideo(videoUrl));
            }));

            Task.Run(new Action(() =>
            {
                while (video == null)
                {
                    UpdateStatus("Loading video information, waiting for video details to load, please wait ...");
                }
            })).Wait();

            FillListView();
        }