Add http protocol:
src="//www.youtube... to src="http://www.youtube...
Domanda
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.
Nessuna soluzione corretta
Altri suggerimenti
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.