简体   繁体   English

是否可以使用QR码在IPAD上播放本地视频?

[英]Is it possible using QR code to play a Local video on IPAD?

I want to use QR codes to play to specific manual videos which are already stored in IPAD. 我想使用QR码播放已经存储在IPAD中的特定手册视频。

I have also found the videos files path with Filza app. 我还找到了Filza应用程序的视频文件路径。

But now I don't know what to input into the QR code generator since the "file:///" is not really working on the ios safari(works very well on MacBook safari). 但是现在我不知道要输入什么到QR码生成器中,因为“ file:///”在ios Safari上并不是真的起作用(在MacBook safari上效果很好)。

and for iOS URL scheme like the "VLC://" only working for the online source. 对于iOS URL方案(例如“ VLC://”)仅适用于在线资源。

I am aware that an Android tablet can do it fairly easy by applying file:///path/to/my/video to QR code generator. 我知道,通过将file:/// path / to / my / video应用于QR码生成器,Android平板电脑可以相当轻松地完成此操作。

But is it possible for ios device? 但是ios设备可以使用吗? if so, how should i input the local URL. 如果是这样,我应该如何输入本地URL。

Thank you 谢谢

If you want access local video file within the app then you have to first store the files in the Documents Directory. 如果要在应用程序中访问本地视频文件,则必须先将文件存储在“文档目录”中。 To save date to and retrieve from the Documents Directory this link would help. 要将日期保存到文档目录并从文档目录中检索,此链接将有所帮助。

For playing files in AVPLayer from Documents Directory this SO Answer would help. 对于从文档目录在AVPLayer中播放文件,此SO Answer将有所帮助。 You can also add files directly using iTunes as ShareIt app does for that this SO Answer would help. 您还可以像ShareIt应用一样使用iTunes直接添加文件,因此该SO Answer可以帮助您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM