30

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.

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.

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.

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.

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?

Thanks,

John.

getnorthern
  • 345
  • 3
  • 7
  • 2
    From what I've seen online, a number of people are @Malevolence. I'm still to come across any solution though... – getnorthern Sep 23 '14 at 15:49
  • Someone has even shown this same issue against a YouTube video: http://stackoverflow.com/questions/25972600/ios-8-embedded-youtube-in-html-web-app-fails?noredirect=1 – matb33 Sep 29 '14 at 20:00
  • Can you share URL ur trying ? – Krunal Darji Jan 03 '15 at 12:37
  • 2
    Not sure if this is relevant, but iOS8 introduced a new WKWebView instead of UIWebView. If Safari on iOS8 is using the new webView then that would be something to check. Build a two-tab app with a UIWebView (i.e. iOS7-style) and a WKWebView (i.e. iOS8-style) and see if your app renders identically. Might give a clue as to what's going on... – Peter Feb 10 '15 at 15:13

2 Answers2

3

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

mddw
  • 5,570
  • 1
  • 30
  • 32
2

On iOS 8 I have noticed that sometimes media will not play audio in the foreground app. The problem appears to be another app has not released the system audio and hence the foreground app is not able to play audio.

To work around this I:

  • Force close other media apps (double tap then swipe up to close).
  • Close Safari tabs that are open to media items (Vimeo, YouTube, web page based media players).

Then I retry the app with the media I want to play and it will usually work.

Mark Thistle
  • 1,871
  • 14
  • 21