Plyr: iOS 11.4/12 Beta, YouTube Not Loading in WebView

Created on 5 Jun 2018  路  4Comments  路  Source: sampotts/plyr

I use Plyr in my app for iOS and on iOS 12 Beta, I noticed that Youtube is no longer loading in webview, that the screen just stays black. Through the browser it works with no issues. So this has to be a Webview issue with Plyr. I'm using the latest 3.3.10 of Plyr.
Just wondering if this is something that has to be fixed by Plyr or something Apple has changed or has to fix?

UPDATE: Also happening in iOS 11.4. Worked with no issues in iOS 11.3

Browser Issue Help Wanted

Most helpful comment

It's the vi ads code. I removed the code from script part and it fixed the issue instantly. So something Apple did in iOS 11.4 and iOS 12 is causing the vi ads code to crash Plyr from loading in WebView.

All 4 comments

If you find out more, please comment and or/ submit a pull request so others with the same issue can get help. Since we don't officially support WebView, or have the time or resources to support and tests every framework and environment we really appreciate community efforts for debugging and fixing these issues.

It's the vi ads code. I removed the code from script part and it fixed the issue instantly. So something Apple did in iOS 11.4 and iOS 12 is causing the vi ads code to crash Plyr from loading in WebView.

It's using the Google IMA SDK so it could be something with that upstream. Perhaps @ferdiemmen can take a look as he originally wrote the plugin.

@sparkktv
Can you share what minimum part of the vi ads code was necessary to remove?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

frumbert picture frumbert  路  3Comments

ahmadshc picture ahmadshc  路  4Comments

Antonio-Laguna picture Antonio-Laguna  路  3Comments

osamay picture osamay  路  4Comments

Lycanthrope picture Lycanthrope  路  4Comments