Windows 10 IOT网络文件

时间:2016-11-11 16:37:26

标签: file-sharing windows-10-iot-core

我尝试使用Windows 10 IOT Core从本地网络访问视频。

我添加了权限:

  • internetClient
  • privateNetworkClientServer
  • internetClientServer
  • enterpriseAuthentication
  • videosLibrary
  • removableStorage
  • remoteSystem

FileTypeAssociation在清单中设置。

folderPicker.PickSingleFolderAsync()返回null:

            var folderPicker = new FolderPicker();
            //folderPicker.SuggestedStartLocation = PickerLocationId.HomeGroup;
            folderPicker.FileTypeFilter.Add(".avi");
            folderPicker.FileTypeFilter.Add(".mp4");
            folderPicker.FileTypeFilter.Add(".mpg");
            StorageFolder folder = await folderPicker.PickSingleFolderAsync();
            var files = await folder.GetFilesAsync(Windows.Storage.Search.CommonFileQuery.OrderByTitle);

这会抛出一个fileNotFountException:

StorageFolder folder = await StorageFolder.GetFolderFromPathAsync(@"\\192.168.0.10\videos\TestVideos\");
StorageFile file = await folder.GetFileAsync("video1.avi");

代码在调试x86(Windows 10 App)中工作,但不在ARM(RT)上(Windows 10 IOT)

据我所知,它们对安全性有一些限制。它有一种方法来禁用这种安全性?或者是否可以编写一个库来访问文件?

罐!

windows IOT版本:10.0.14393.448

硬件:Raspberry Pi 2 Model B

网络:以太网电缆

0 个答案:

没有答案