iOS 8 - 视频和声音文件无法在主屏幕Web应用程序中播放 [英] iOS 8 - Videos and sound files won't play from home screen web app

查看:102
本文介绍了iOS 8 - 视频和声音文件无法在主屏幕Web应用程序中播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个HTML5网络应用程序,它使用JWPlayer进行嵌入式视频和播客。这在iOS 7中都可以正常工作,包括在Safari中以及在主屏幕上保存为Web应用程序时。

I have an HTML5 web app which uses JWPlayer for embedded videos and podcasts. This works fine in iOS 7, both within Safari and when saved as a web app to the home screen.

在iOS 8中,视频和声音文件也将在Safari,但是当我将应用程序保存到我的主屏幕并从图标中打开时,没有任何媒体文件会播放。

In iOS 8, the videos and sound files will also play within Safari, but when I save the app to my home screen and open it from the icon, none of the media files will play.

我尝试通过Safari进行调试我的Mac上的控制台,我的手机上运行的应用程序,但没有看到任何错误,或其他任何可能导致问题的错误。

I've tried debugging through the Safari console on my Mac, with the app running on my phone, but don't see any errors, or anything else that may be causing the problem.

如果我在iOS 7上运行该应用程序,则控制台中的输出与我在iOS 8上看到的相同。

If I run the app on iOS 7, the output in the Console is identical to what I'm seeing on iOS 8.

就好像应用程序正在尝试加载媒体一样,但如果我尝试离开嵌入媒体的页面,应用程序崩溃并关闭。

It's as if the app is trying to load the media, but if I try to navigate away from the page where the media is embedded, the app crashes and closes.

任何人都可以对此有所了解,并提供解决方案吗?这是一个错误,还是Apple故意限制主屏幕网络应用程序的功能?

Can anyone shed any light on this, and offer a work-around? Is it a bug, or a deliberate move by Apple to limit the functionality of home screen web apps?

谢谢,

John。

推荐答案

iOS 8.3修复了该错误。视频现在可以从主屏幕webapp播放,包括来自appcache。

iOS 8.3 fixes the bug. Videos are now playable from homescreen webapp, including from appcache.

这篇关于iOS 8 - 视频和声音文件无法在主屏幕Web应用程序中播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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