1. Add Network access rights
<uses-permission android:name= "Android.permission.INTERNET"/>
2. WebView Add full screen supportDeveloper official documentation about HTML5 supported video playback is described as follows: In order-to-support-inline HTML5 video in your application, you need to has hardware a Cceleration turned on, and set aWebChromeClient. For full screen support, implementations ofonShowCustomView(View, WebChromeClient.CustomViewCallback) andonHideCustomView()is required,getVideoLoadingProgressView()is optional.1) Turn on hardware acceleration
2) rewrite the webchromeclient onShowCustomView(View, WebChromeClient.CustomViewCallback) and Onhidecustomview ()
Onshowcustomview the layout of the large screen, hide the small screen layout, exit full-screen playback in Onhidecustomeview, and re-display the small screen layout
Reference:
Http://developer.android.com/reference/android/webkit/WebView.html
http://stackoverflow.com/questions/12708890/youtube-video-not-playing-in-webview-android/12850816#12850816