play youtube video in WebView

You cannot show them embedded except perhaps on devices that have Flash.

However, if you can parse out the YouTube video details, you may be able to construct an ACTION_VIEW Intent that will show them on the YouTube application…for those Android devices that have the YouTube application.

You might also experiment with HTML5’s <video> tag, which AFAIK is supported in the Browser application and may therefore work in WebView.

Leave a Comment