Newsroom Update

Apple and Google deliver support for unwanted tracking alerts in iOS and Android. Learn more >

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

Mar 11, 2015 9:24 AM in response to eric46

This is not just a video problem. All use of iFrames in standalone web app mode now fails on iOS Safari. What is happening is that all touch events are blocked in iFrames, so you cannot get any responses, click on links, scroll etc. We produce an app for viewing extensive documentation offline on the iPad and this makes offline mode completely useless. It works perfectly on Android tablets, by the way. Just saying... 👿

Mar 19, 2015 7:24 AM in response to breakbild

breakbild wrote:


Any response from Apple Support on this? What is the status of this reported issue? It's more than a year later now...

Did you report it to Apple Technical Support? They are not reading here. Nor will they post. This is a user-to-user technical support forum. See the Contact Us link at the bottom right of every page for information on how to contact Apple directly.

Apr 9, 2015 12:07 PM in response to jringelberg

True, however for me there is another bug now. I have a youtube iframe embedded into my mobile index page. When this page begins to load in my web app it auto opens the youtube app now. The index of my mobile page never fully loads or displays. no matter how many times I relaunch the web app the youtube app opens in a redirect. This happens only with embedded youtube iframe content. Vimeo and local embedded videos play fine now via the web app.

Apr 9, 2015 2:32 PM in response to jringelberg

We upgraded to iOS v 8.3 today and still seeing the Youtube videos failing to play on V4 iPad (model: MD510LL/A)

Which model of iPad are you testing with?


FYI, in the past our V2 iPad didn't have an issue with the Youtube embedded videos and still doesn't. But the later model versions of iPads did have an issue and still do.

Apr 28, 2015 2:49 AM in response to Bitetos

Sorry for the late reply I have been engaged in my art project. Okay everyone here is the fix. All that I ask is that if you like, please credit me as the author of this fix post. Copy the following fix information and populate worldwide. Together we can get the word out and help developers out there who have been tearing their hair out over this madness.


In your embed code you want to change the string to reject cookies. This is a workaround that will undo the bug in ios 8.3 that seems to redirect embedded youtube content to the standalone player (ios). It's quite a simple workaround but nonetheless it works a dream and stops the ol' nasty bug from ruining your user experience and that's what it's all about. Making for beautiful user experiences for all of the kids of the world.


(EXAMPLE)

*Your embed:

<iframe width="760" height="570" src="https://www.youtube.com/embed/ch2Dw7lMg_w" frameborder="0" allowfullscreen></iframe>


*To look like this:

<iframe width="760" height="570" src="https://www.youtube-nocookie.com/embed/ch2Dw7lMg_w" frameborder="0" allowfullscreen></iframe>



All should be good to go lads. Hope it helps and your web apps will run with glee and total smiles again.

Oi!


PLEASANT

www.pleasantdesigns.org

www.pleasantart.com

Apr 28, 2015 3:01 AM in response to modern artist

Indeed there is glee at this desk!

I was just about to recommend the workaround of "delete the YouTube app" when your reply popped up.

You've just made several dozen people at my customer extremely happy.


Next time you're in London I would love to buy you a delicious beer! (Maybe I can throw some design work your way - will certainly bear you in mind)


Oliver

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.