在 HTML 5 网页中播放 iPad 上的本地视频

发布于 2024-09-27 18:15:19 字数 158 浏览 0 评论 0原文

有谁知道是否可以使用 HTML5 视频标签来播放 iPad 库中的视频?

比如:

<source src="/local/path/video.mp4" type="video/mp4" />

谢谢你的时间

Does anyone know if you can use the HTML5 video tag to play a video from the iPad library?

Something like:

<source src="/local/path/video.mp4" type="video/mp4" />

Thanks for your time

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

圈圈圆圆圈圈 2024-10-04 18:15:19

据我所知,网页无法访问iOS设备的文件系统(因此iOS上缺乏对的支持)。

用户无法直接访问文件系统,因此如果网页可以直接访问文件系统就会很奇怪。

As far as I know, web pages don’t have access the iOS devices’ filesystems (hence the lack of support for <input type="file"> on iOS).

The user doesn’t have direct access to the filesystem, so it would be odd if web pages did.

只是偏爱你 2024-10-04 18:15:19

有一个解决方案,尽管它不是最方便的。

您可以越狱您的 iOS 设备、安装 Cydia 并下载/安装 iFile 等 Web 服务器。

然后,您可以通过引用设备的 IP 来引用设备文件系统的任何文件,例如:

<source src="http://192.168.x.x:10000/local/path/video.mp4" type="video/mp4" />

iFile 还将为您提供对文件系统的直接访问。作为替代方案,您可以使用 OpenSSH 通过 WinSCP 等程序远程访问您的文件系统。

There is a solution even though it is not the most convenient.

You can Jailbreak your iOS device, install Cydia and download/install a web server like iFile.

Then you can reference any file of the devices' filesystem by referencing the IP of the device like:

<source src="http://192.168.x.x:10000/local/path/video.mp4" type="video/mp4" />

iFile will also provide you direct access to your filesystem. As an alternative you can use OpenSSH to access your filesystem remotely via programs like WinSCP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文