关于在线HTML5视频系统的离线模式解决方案 [英] About solution of offline mode for online HTML5 video system

查看:181
本文介绍了关于在线HTML5视频系统的离线模式解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有在线网站系统,具有很多功能,如播放视频等。

We have online website system with a lot of feature such as playback video etc.

目的是我们想用UIWebView为iPad做离线模式应用支持。

The purpose is that we want to make offline mode application for the iPad with UIWebView support.

两种选择:


  1. 使用HTML5清单实施离线模式,此处

下载所有HTML / JavaScripts / CSS内容和资源(如图像/视频),然后使用UIWebView加载HTML文件

Download all content of HTML/JavaScripts/CSS and resources such as images/videos, then use UIWebView to load the HTML file

对于解决方案1,搜索后我们发现了很多问题,例如

For the solution 1, after searching we found a lot of problems such as


  • 缓存限制,不清楚答案,5MB? 50 MB?

  • 难以控制,HTML / CSS / JS文件还可以,但对于视频等,不稳定

  • 按会话生活

  • ...

  • cache limitation, not clear answer , 5MB ? 50 MB ?
  • hard to control , HTML/CSS/JS files are okay, but for video etc, not stable
  • live by session
  • ...

所以我们放弃解决方案1,然后选择解决方案2:
首先下载所有内容,然后使用来自本地下载数据的UIWebView进行渲染。

So we would give up the solution 1 , and choose solution 2: Download everything first, and render them with UIWebView from local downloaded data.

问题:


  • 您如何看待解决方案2?可以通过Apple的评论吗?
    (我担心UIWebView对JS有一些限制)

  • 任何人都成功使用解决方案1?

  • 还有其他任何解决方案吗?

谢谢

推荐答案

我们实际上我们对我们的客户做了同样的事情!

We've actually just done this very same thing for a client of ours!

我们花了很多时间试图找到解决方案的方法 - 而且简单地说 - 不可能。

We spent forever trying to find a way around solution one - and simply put - not possible.

iOS提示用户RE清单 - 但限制是50mb - 一旦结束,它一直是例外!

iOS prompts the users RE manifest - but the limit is at 50mb - and once thats up, it's exceptions all the way!

我们目前正在沿着2号线行驶(它的效果非常好!)

We're currently going down route 2 (and it works great!)

为了给它'app feel'我们使用了HashBang链接来确保所有页面转换都是流动的 - 因为用户实际上只停留在一个页面上,因为所有内容都是使用'#!/ Page / Section / etc ...'处理的。

To give it an 'app feel' we've used HashBang links to ensure all the page transitions are fluid - as the user actually only stays on a single page, as everything is handled using '#!/Page/Section/etc...'.

关于我们还没有发现任何限制,我们正在解决一些相当沉重的JS - 虽然我不知道d尝试不使用框架(如果你愿意,我可以详细说明!)。

With regards to limitations we've not found any yet, and we're firing some pretty heavy JS at it - although I would try and not use a framework for this (I can go into detail if you wish!).

至于通过Apple传递它 - 我们不会经历在应用程序商店,我们为此购买了企业许可证,因此我们可以直接部署到我们的客户iPad,因为它仅供他们使用 - 我不确定这是否符合您的需求 - 但是选项就在那里!

And as for passing it via Apple - we're not going through the app-store, we bought an enterprise license for this, so we can deploy directly to our clients iPads, as it's for their use only - I'm not sure if this fits your needs - but the option is there!

让我知道你的想法!

这篇关于关于在线HTML5视频系统的离线模式解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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