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

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

问题描述

我有一个HTML5 Web应用程序,它使用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.

我尝试通过Mac上的Safari控制台进行调试,并且该应用程序在手机上运行,​​但是没有看到任何错误或其他可能导致此问题的信息.

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故意限制主屏幕Web应用程序功能的举动?

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?

谢谢

约翰.

推荐答案

iOS 8.3修复了该错误.现在可以从主屏幕web应用(包括appcache)播放视频了.

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

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

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