I want to play YouTube video in WebView or
When user click on youtube video I have to forward it to real YouTube app because in WebView I am not able to play YouTube video.
Is there any way to play a YouTube video in our WebView?
I want to play YouTube video in WebView or
When user click on youtube video I have to forward it to real YouTube app because in WebView I am not able to play YouTube video.
Is there any way to play a YouTube video in our WebView?
You can play video in video view (the videos those are stored in local storage).
but if you want to stream it from server you have to go for rtsp video streaming.
As long as the video and device supports HTML5 you can do it through that, and if it has any flash elements you can run it as a flash application and it will treat it like a web page.
There are many things to ensure that you are able to view a YouTube video in your application.
Enable hardware acceleration in your application using android:hardwareAccelerated="true"
Ensure that your WebView has plugins enabled
webSettings.setPluginState(PluginState.ON);
If it still does not work, try loading the webpage a few times, or pass an Intent with the video link to YouTube.