- 自动播放video,H5的video标签
webView.getSettings().setMediaPlaybackRequiresUserGesture(false); webView.setWebViewClient(new WebViewClient() { @Override public void onPageFinished(WebView arg0, String arg1) { // TODO Auto-generated method stub super.onPageFinished(arg0, arg1); loadJs("button", "javascript:showmovie()"); } }); webView.loadUrl(url);