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.

Pas de solution correcte

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top