public override StorageMedia Clone() { var item = new StorageVideo(File, _basic, Properties, Profile); item._thumbnail = _thumbnail; item._preview = _preview; return(item); }
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)); } }