How to play/embed YouTube videos in WebView

How to play/embed YouTube videos in WebView

mWebView.getSettings().setPluginState(PluginState.ON);
mWebView.getSettings().setJavaScriptEnabled(true);

and make sure you have the “embed code” in your html code.
(You will need to change the size of the video though, the default size is huge for a mobile screen!)

FacebookGoogle BookmarksTwitterFriendFeedGoogle GmailBlogger PostGoogle ReaderHotmailWordPressShare

Related posts:

  1. Phpbb3 embed youtube videos
  2. WebView: Change background and font color
  3. Back in Android’s WebView
  4. WebView not displaying UTF-8 Data
  5. Android transparent webview

Tags: ,

1 Response to "How to play/embed YouTube videos in WebView"

Leave a Comment