IOS Web App视频缓存播放问题(mp4) [英] IOS Web App Video Caching Playback Issue (mp4)

查看:216
本文介绍了IOS Web App视频缓存播放问题(mp4)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在iPad2上运行最新版本的iOS(5.0.1),无法正常缓存.mp4视频

我已经添加了必要的监听器来监听applicationCache事件,然后在这些事件发生时写入控制台,最值得注意的是,当我的应用程序被缓存时,如下所示:
http:// developer。 apple.com/library/safari/#documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html

I've added the necessary listeners to listen for applicationCache events and then write to the console when those events happen, most notably, when my app is cached as noted here: http://developer.apple.com/library/safari/#documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html

在我的移动版Safari中使用调试控制台ipad,我可以看到消息说明我的应用程序已成功缓存(万岁!)。 当我重新加载页面时,一切正常,除了视频 (有一个类似于指向不存在的视频源时的图标;播放带有斜线的按钮)。

Using the debug console in mobile safari on my ipad, I can see messages stating that my application has "cached" successfully (hooray!). When I reload the page EVERYTHING works, except the video (there is the icon similar to when you point to a non-existent video source; play button with a slash through it).

在我的iPad上检查Safari的网站数据时,那里有完整的视频大小(和其他文件)(约28mb)。 这可以在桌面Safari(离线),Chrome等中缓存。在缓存应用时,我收到一条消息你想允许www.site.com增加超过25mb的缓存,并批准下载/缓存完成。

In checking my "Website Data" for Safari on my iPad and the full video size (and other files) are there (~28mb). This caches fine in desktop Safari (while offline), Chrome, etc. When caching the app, I get a message "Would you like to allow www.site.com to increase cache greater than 25mb", and approve and the download/cache completes.

什么更疯狂,即使我还在线,我的iPad指向本地文件,看来我的iPad正试图拉动本地视频,同样的错误仍然存​​在。

我也是:


  • 制作更简单的版本(1 html文件1视频)缓存,同样的问题。

  • made a simpler version (1 html file 1 video) cached, same issue.

一个1mb的视频,同样的问题,所以这不是尺寸问题

A 1mb video, same issue, so it's not a size issue

在iPad上播放缓存视频是不是不可能?我可以看到mb的,所以我知道它被缓存,它只是不会播放。

Is it just impossible to playback cached video on the iPad? I can see the mb's so I know it's cached, it just won't play.

推荐答案

除非你找不到实现视频播放器的方式,并依靠标准方式将视频包含在您的webapp中,在iOS上,它将由外部视频播放器应用程序管理,显然它无法使用Web应用程序缓存:(

Unless you don't find a way to implement a video player and rely on the standard way to include the video in your webapp, on iOS it will be managed by the external video player application and apparently it is not able to make use of the web application cache :(

这篇关于IOS Web App视频缓存播放问题(mp4)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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