I need to play youtube video in the webview,but when I load the URL the entire youtube mobile page is loaded. I want only a player or a way to embed the video in the webview, like in IOS. Is it possible? With the iframe tag the video doesn't load, it say that an error occurred.
Thanks.
Android – How to play Youtube video in WebView
androidwebviewyoutube
Related Topic
- Php – How to get a YouTube video thumbnail from the YouTube API
- Android – unique Android device ID
- Youtube iframe wmode issue
- Html – Force HTML5 youtube video
- Android – Play Youtube HTML5 embedded Video in Android WebView
- Javascript – How to embed an autoplaying YouTube video in an iframe
- Java – Proper use cases for Android UserManager.isUserAGoat()
Best Answer
Use the Code to display an embedded Video in your Source for the WebView:
You can find the URL for the src-Tag if you got to the Youtube Website and click on share -> embed.
But why do you use WebView? There you have to play the Videos in Flash. The Android VideoView can also stream Youtube Videos.