如何在HTML5的应用缓存中存储50MB视频? [英] How can i store a 50MB video in HTML5's app cache?

查看:99
本文介绍了如何在HTML5的应用缓存中存储50MB视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发iOS离线应用,我正在尝试存储50MB视频以供离线观看。但是,在我的 manifest.appcache 中正确添加视频的网址后,我收到了一个控制台错误,指出appcache限制超出了允许的大小。因此,打破了我的整个页面;之后没有加载一个资源。



一旦我从appcache取消链接视频,一切正常。



<有没有办法可以规避这种行为?或者,有没有办法可以在IOS5 + iPad上存储50MB视频用于离线查看?

解决方案

你必须问用户增加iOS设置的限制。查看财务时间网络应用程序并查看他们的方法。



http://apps.ft.com/ftwebapp/



让用户手动完成它并不是很优雅,但由于没有API ,没有真正的替代方案(除了PhoneGap等)。


I'm developing an iOS offline app, and i'm trying to store a 50MB video for offline viewing. However after properly adding the video's url in my manifest.appcache, I got a console Error saying that the appcache limit exceeded the allowed size. Therefore, breaks my whole page; not one resource is loaded after.

As soon as I unlink the video from the appcache, everything works fine.

Is there a way i can circumvent this behavior ? Or, is there a way i can store a 50MB video on an IOS5+ iPad for offline view ?

解决方案

You have to ask the user to increase the limit in the iOS settings. Check out the financial times web app and see their approach.

http://apps.ft.com/ftwebapp/

It's not very elegant to get the user to do it manually, but since there's no API, there's no real alternative (except PhoneGap, etc.).

这篇关于如何在HTML5的应用缓存中存储50MB视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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