I\'ve had an app out for a while which uses UIWebView
s to display YouTube videos on certain views. Today, without any changes to the code, my users started comp
Someone found a workaround here, to an extent. Not sure how to mark an answer like that, but I'll copy it over to here for convenience.
Essentially the issue seems to relate to a change in implementation of the playsinline
parameter on YouTube's side. It doesn't matter what value you provide, or whether you use the default, but it seems to break every Youtube video embedded in this way.
The solution seems to be adding the following line before you call [myWebView loadHTMLString:string]
:
[myWebView setMediaPlaybackRequiresUserAction:NO];
I have no idea why this fixes it, but many thanks to Kyokook Hwang for providing that answer so quickly. It worked for me, and it seemed to work for many others too.
I'm experiencing this exact same issue. I don't know exactly when it started happening since I just got it reported as a bug today, but it manifests in exactly the way you describe.
This very much sounds like something going wrong on Google's end, let's hope it's not intentional.
edit: a friend pointed me at this post which may be related: https://productforums.google.com/forum/#!category-topic/youtube/report-a-technical-issue/iHd0NK33k-I