0

n my application I have used web view to YouTube link. The link opens, but when I click on the video link in Youtube site nothing happens. It does not show any error or exception but it doesn't play video either

etc : http://www.youtube.com/user/XXXX

ISKENDER
  • 1
  • 4

1 Answers1

0
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/user/XXXX"));

The best approach is to launch native player to play youtube file or refer this link to play in media player.

Shankar Agarwal
  • 34,573
  • 7
  • 66
  • 64
  • Thank you for the solution. but I want to do is run from within the application. How can I do without leaving the application in a WebView? – ISKENDER May 27 '12 at 10:44
  • try the link in my comment http://stackoverflow.com/questions/4506576/how-to-play-youtube-video-in-webview-in-android – Shankar Agarwal May 27 '12 at 10:45
  • In this connection there is only an example for one video. If you notice a user page, I want to run the desired video link – ISKENDER May 27 '12 at 10:50
  • I'm having the same problem here :http://stackoverflow.com/questions/7036627/web-view-to-youtube-opens-but-the-video-does-not-play – ISKENDER May 27 '12 at 10:55
  • Friends Do not have an answer? – ISKENDER May 27 '12 at 11:44