2014-04-23 3 views
0

내 앱을 사용하면 분리 된 저장소에 저장되는 동영상 (예 : ApplicationData.Current.LocalFolder)을 녹화 할 수 있습니다. 다른 화면에는 모든 녹화 된 비디오가 표시됩니다. 그것은 주어진 형식 아래에있는 목록 상자를 갖습니다.Windows Phone 8의 로컬 저장소에서 파일 메타 데이터를 가져 오는 방법은 무엇입니까?

Video Thumbnail | Video Name | Video Duration (hh:mm:ss) | Video Creation Date 

썸네일, 동영상 재생 시간 및 동영상 생성 날짜를 추출 할 수있는 방법이 없습니다. 아래 주어진 코드를 시도했지만 예외가 throw됩니다. 아무도 나를 도울 수 있습니까?

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(); 
} 

답변

0

예외가 나타내는 것처럼 이러한 속성은 전화에서 사용할 수 없습니다.
즉, 동영상에서 미리보기 이미지 또는 기타 메타 데이터를 추출 할 수 없습니다.

+0

그러면 해결 방법은 무엇입니까? 내가 원하는 것을 얻는 방법? – Xyroid