【发布时间】:2014-04-23 12:41:13
【问题描述】:
我的应用程序允许用户录制视频,这些视频被保存在隔离存储中,即ApplicationData.Current.LocalFolder。另一个屏幕将显示所有录制的视频。它将有一个具有以下给定格式的列表框。
Video Thumbnail | Video Name | Video Duration (hh:mm:ss) | Video Creation Date
我找不到任何方法来提取缩略图、视频时长和视频创建日期。我尝试了下面给定的代码,但它引发了异常。谁能帮我解决这个问题?
var LocalStorage = await ApplicationData.Current.LocalFolder.GetFilesAsync();
foreach (var file in LocalStorage)
{
// Throws 'System.NotSupportedException'
var thumb = await file.GetThumbnailAsync(Windows.Storage.FileProperties.ThumbnailMode.VideosView);
// Throws 'System.NotImplementedException'
var check = new List<string>();
check.Add("System.DateCreated");
var bprop = await (await file.GetBasicPropertiesAsync()).RetrievePropertiesAsync(check);
// Throws 'System.NotSupportedException'
var prop = await file.Properties.GetVideoPropertiesAsync();
}
【问题讨论】:
标签: c# windows-phone-8 windows-phone isolatedstorage