简体   繁体   English

在移动Safari(html5)中为离线iphone / ipad网络应用缓存视频内容?

[英]cache video content for offline iphone/ipad web apps in mobile safari (html5)?

i have seen a few (discouraging) questions related to this subject but I am still not clear on the answer. 我已经看到了一些与这个问题有关的(令人沮丧的)问题,但我仍然不清楚答案。

is it possible to cache video content for immediate playback in an offline web app on the iphone or ipad? 是否可以缓存视频内容,以便在iphone或ipad上的离线网络应用程序中立即播放?

(i believe that there is a 5mb limit for any cached file.) can videos cache the same way other files can, using the manifest? (我相信任何缓存文件都有5mb的限制。)视频可以使用清单以与其他文件相同的方式缓存吗? are there alternatives? 有替代品吗?

At the moment in IOS 5.1 you can't save video or audio files to Application Cache this is valid for the iPhone and for the iPad, but desktop safari can store and play offline video e and audio files since version 5.1 of the Safari browser. 目前在IOS 5.1中,您无法将视频或音频文件保存到应用程序缓存,这对iPhone和iPad都有效,但桌面版Safari可以存储和播放自Safari浏览器5.1版以来的离线视频电子和音频文件。

This is probably a precaution to prevent consuming unnecessary network data (usually 3G data is limited and expensive), because every file declared in the manifest get's downloaded and cached even if the user doesn't visit the portion of the site having that content. 这可能是防止消耗不必要的网络数据(通常3G数据有限且昂贵)的预防措施,因为即使用户没有访问具有该内容的站点部分,清单中声明的​​每个文件也会被下载和缓存。

In my opinion if the users had the wifi enabled safari for ios should be able to cache video and audio files. 在我看来,如果用户有启用wifi的ios的safari应该能够缓存视频和音频文件。

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

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