即時通訊相當新的C#和即時通訊嘗試我看看製作Windows手機應用程序,在應用程序中,我需要它來減少視頻文件。經過搜索和詢問周圍人的時間向我指出這個 https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh868176.aspx修剪視頻文件WPF C#
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);
}
我已經在應用程序,我想提出使用這種嘗試,並在頁面
的Windows Phone上指出商店應用必須使用pickSingleFileAndContinue。
我已經嘗試過不同的代碼組合,正如剛纔陳述的一個新手。
我不斷收到不同的錯誤,是有任何人誰能夠如何得到這個對WP8.1工作
感謝