Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Youtube videos not playing on standalone Safari browser iOS 8

I have a very strange problem with an embedded youtube player on a web app, I am working on. The web app is "mobile capable" so when saved on a user homescreen, it opens up in a chromeless safari browser.



So here is my issue:



The YouTube player is embedded on one of the pages in the web app using an iframe, and when the "play" button is clicked and the app is open in the chromeless safari window, the video loads forever and never plays....however when this scenario is replicated in the regular safari browser everything works fine.



This started happening only after the iOS 8 update. This is happening on an iPhone 5 running iOS 8, and it previously worked fine on the same iPhone 5 under iOS 7. Additionally, I tested the app on an iPhone 5c running iOS 7, and an iPad Air running iOS 7 and everything works fine.



Side Note: I even changed the implementation to embed using an object instead of an iframe, and the same problem occurs with either one.

iPhone 5, iOS 8

Posted on Sep 24, 2014 11:24 AM

Reply
51 replies

Dec 11, 2014 7:39 AM in response to iWesti

Got an iPad 3 here running 8.1.2 and it's still not working. It's not just YouTube videos that it happens with. Any use of the HTML5 video tag when the browser is run in WebApp mode causes the problem.


See this test page for an example http://tests.mikeditum.co.uk/iPad/video_playback.html if you play the video when in normal safari it works fine, add it to the home screen and start it and you get the first frame only.

Dec 31, 2014 11:09 AM in response to ludovicyu

Anyone found a workaround yet?


- trying on iPad 3 (IOS 8.1.1 - 8.1.2)

- safari works, same site "standalone" does not

- standard youtube iframe technique.


I also tried some youtube params like "origin=" and disabling JS-API, keyboard nav, but no luck.. i assume it is not the source that is the problem here. Has to do with standalone webkit.

Jan 7, 2015 8:14 AM in response to ludovicyu

This bug does not seem to be fixed soon, I don't see Apple eager to do it, I am not sure they actually really care about standalone web apps, I feel like we are sort of abandoned.


I got this problem, but with Google Maps as well. I managed to implement a workaround by means of using old Google Maps URLs and embed them using <object> tag instead of <iframe>. It works nicely in 8.1.1 and 8.1.2, and in iOS 7 as well.


So, again, something that worked normally gets screwed with a new update. This applies in this case both to iOS and Google, of course.


Good luck, developers!

Feb 4, 2015 7:01 AM in response to ludovicyu

Am very upset over all this. All web-app 'homescreen' (iframe embedded) videos have ceased to play.


...Same situation, start button is pressed, content does not load/play, just loops in loading. I have tried every conceivable workaround, nothing works. Youtube, Vimeo, self hosted, its all the same situation, no playback in stand alone. Content does play via the mobile browser but not in the standalone. Must be some sort of webkit issue. I am shocked that this bug/issue has not been addressed for so long. I know that I can not be alone in my anger in regards to this issue. I am assisting in development of a commercial site that depends on its web-app content functioning properly. We are all very disappointed in Apple and it's release of a very buggy ios 8. But what is worse is the fact that this issue has persisted for so long. Kind of like that pixelated, blurry icon issue that hung around for years between Snow Leopard to Mavericks. It took years, Years for them to fix that. I truly hope that this is not a repeat of that scenario. People are losing business over this 'bug". Let's get all of this together soon.

Feb 4, 2015 7:18 AM in response to modern artist

FYI, there is a discussion about this on the Apple Developer forums too ... also with no solution just yet, if someone posts a solution there, ill share it here. I am still trying to fix this as well. I am VERY surprised and disappointed that Apple has not addressed this yet. If it is an issue that YouTube and Vimeo need to address in their iframe embed codes, then Apple should send them instruct asap.

Feb 4, 2015 7:23 AM in response to dsrupt

Thank you for the update. I am on the developer forum also under a different name. I hope that a solution can be found soon. part of our our UX is affected by this ongoing issue. I wish developers were better update by apple in regards to these kinds of os issues, especially one as blatant as this one. I have viewed threads on vimeo and google about this same os bug issue. It's super widespread.

Feb 10, 2015 5:07 AM in response to modern artist

Hi there,


same problem on our side :-/ it's not just about embedding videos, but behavior of all IFRAMEs are different - compared to iOS 7.


This "bug" or "feature" limiting our application drastically.

Example: now, if you are using IFRAME in content of webview it become full-screen right after webview is loaded, which is unwanted.


Thanks for any advice how to embed iframe in webview of iOS app.

Mar 4, 2015 2:11 AM in response to ludovicyu

This is outrageous from Apple. What are they doing?! I've submitted a bug report regarding this and they've closed it down as a duplicate of another report, which I can't see or have access to because it's not mine!?


Quite frankly, this has made myself and I'm sure many others such as dsrupt and modern artist VERY angry and frustrated.


I've been checking all of the threads on this eager for a solution and yet drawing dead. It's like waiting for a vaccine to an incurable bug... Feels like Apple aren't bothered about something they can't sell themselves.. Web Apps.


This has hugely dented my confidence in Apple in every aspect from sloppy iOS8 to lack of quick fixes.


If anyone at Apple reads this, check these out:


http://nterspace.com/youtubeissue.html


http://stackoverflow.com/questions/25972600/ios-8-embedded-youtube-in-html-web-a pp-fails?lq=1


http://stackoverflow.com/questions/25972362/why-html5-video-doesnt-play-in-ios-8 -webappwebview

Youtube videos not playing on standalone Safari browser iOS 8

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.