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.
I need to play youtube video in the webview,but when I load the URL
Share
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.