Exemple #1
0
        public override StorageMedia Clone()
        {
            var item = new StorageVideo(File, _basic, Properties, Profile);

            item._thumbnail = _thumbnail;
            item._preview   = _preview;

            return(item);
        }
Exemple #2
0
 public static async Task <StorageMedia> CreateAsync(StorageFile file, bool selected)
 {
     if (file.ContentType.Equals("video/mp4"))
     {
         return(await StorageVideo.CreateAsync(file, selected));
     }
     else
     {
         return(await StoragePhoto.CreateAsync(file, selected));
     }
 }