[UWP] [JS]从UWP Javascript应用程序中的特定本地文件夹访问图像和视频。 [英] [UWP][JS]Access images and Videos from a specific local folder in UWP Javascript application.

查看:56
本文介绍了[UWP] [JS]从UWP Javascript应用程序中的特定本地文件夹访问图像和视频。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们想要使用设备中特定文件夹中的图像和视频创建一个滑块。

We want to create a slider using the images and videos from a specific folder from the device.

表示,当UWP应用程序启动时,它应该从Uwp javascript应用程序中的Specific文件夹中获取内容(Assets)。

Means, As the UWP application starts it should take the content(Assets) from the Specific folder in Uwp javascript application.

任何方法都可以这样做。?

例如:我们想从d:/ My项目数据中获取内容。

Any way to do this.?
for example: we want to get the content from d:/My project data.

问候,

Ashwin

Regards,
Ashwin

推荐答案

Hi Ashwin,

Hi Ashwin,

随着Windows 10版本1803(Build 17134)的持续更新,有一项新功能允许UWP应用程序可以获得与用户相同的文件系统访问权限。当前正在运行该应用程序。 

With the lasted update Windows 10 Version 1803 ( Build 17134), there is a new capability that allow UWP apps could get the same access to the file system as the user who is currently running the app. 

要实现此功能,您需要将项目定位到1803并在清单文件中添加此限制功能,如下所示:

To achieve this capability, you need to target your project to 1803 and add this restricted capability in the manifest file like this:

<Capabilities>
    <rescap:Capability Name="broadFileSystemAccess" />
</Capabilities>

您可以在此处获得有关此功能的更多信息:  文件访问权限   App
功能声明

You could get more information about this capability here: File access permissions and App capability declarations

请注意,此功能是  ; 受限制的功能,这意味着这些功能的使用受到严格限制,并受到额外的商店入门政策和审核的约束。但是您可以在不需要获得任何批准的情况下支持声明受限
功能的应用。

It is note that this capability is a restricted capability which means the use of these capabilities is highly restricted and subject to additional Store onboarding policy and review. But you could sideload apps that declare restricted capabilities without needing to receive any approval.

祝你好运,

Roy


这篇关于[UWP] [JS]从UWP Javascript应用程序中的特定本地文件夹访问图像和视频。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆