コード例 #1
0
        private async Task <bool> SaveMoviePictureAsync(VideoItem video, byte[] img)
        {
            if (await FetcherHelpers.SaveBytes(video.Id, "moviePic", img, "jpg", false))
            {
                await DispatchHelper.InvokeAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
                {
                    video.IsPictureLoaded = true;
                    video.HasMoviePicture = true;
                });

                await video.ResetVideoPicture();

                return(true);
            }
            return(false);
        }