FilePicker タスクを使用してビデオ ファイルを保存しようとしていますが、ソリューションに FileSavePicker タスクが表示されません。以下にスクリーンショットを添付します
Windows.Storage.Pickers に表示されるタスクは 4 つだけです。
- ファイル拡張子ベクトル
- ファイルオープンピッカー
- PickerLocationId
- PickerViewMode
これが私が使用しているコードです
async void TrimVideoFile()
{
Windows.Storage.StorageFile source;
Windows.Storage.StorageFile destination;
var openPicker = new Windows.Storage.Pickers.FileOpenPicker();
openPicker.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.VideosLibrary;
openPicker.FileTypeFilter.Add(".wmv");
openPicker.FileTypeFilter.Add(".mp4");
source = await openPicker.PickSingleFileAsync();
var savePicker = new Windows.Storage.Pickers.FileSavePicker()
savePicker.SuggestedStartLocation =
Windows.Storage.Pickers.PickerLocationId.VideosLibrary;
savePicker.DefaultFileExtension = ".mp4";
savePicker.SuggestedFileName = "New Video";
savePicker.FileTypeChoices.Add("MPEG4", new string[] { ".mp4" });
destination = await savePicker.PickSaveFileAsync();
// Method to perform the transcoding.
TrimFile(source, destination);
}
4つのタスクのみを表示しています。FileSavePicker タスクを使用するにはどうすればよいですか。私は Visual Studio 2012 を使用しており、対象となるアプリは Windows Phone 8.0 アプリです。