3

FilePicker タスクを使用してビデオ ファイルを保存しようとしていますが、ソリューションに FileSavePicker タスクが表示されません。以下にスクリーンショットを添付します

Windows.Storage.Pickers に表示されるタスクは 4 つだけです。

  1. ファイル拡張子ベクトル
  2. ファイルオープンピッカー
  3. PickerLocationId
  4. 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 アプリです。

4

1 に答える 1

1

ファイル ピッカーは、Windows Phone 8 では使用できません。Windows Phone 8.1 で追加されました。

MSDNのFileSavePicker ドキュメントのバージョン セクションを参照してください。

サポートされる最小の電話 Windows Phone 8.1 [Windows Phone Silverlight 8.1 および Windows ランタイム アプリ]

于 2015-05-28T00:46:09.390 に答える