Question

I am having an issue with Android 4.0.3's native mobile browser inability to play the suggested embed code from YouTube,

<iframe width="560" height="315" src="//www.youtube.com/embed/mEvvc80ZYU8" frameborder="0" allowfullscreen></iframe>

Safari mobile, Chrome mobile on iOS works as expected. Chrome mobile on Android is working as expected. Android's native browser on tablet, plays the iframe as expected.

No correct solution

OTHER TIPS

Add http protocol:

src="//www.youtube... to src="http://www.youtube...

It sounds weird but in my case, just add

webview.setWebChromeClient(new WebChromeClient());

somewhere before loadUrl() and it works.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top