聚合云播

排序

寻访千利休剧情简介

 

"); videoRef = (WebView) findViewById(R.id.videoRef); /*加载网络视频*/ WebSettings webSettings = videoRef.getSettings(); //设置缓存 webSettings.setAppCacheEnabled(true); //设置缓存模式,一共有四种模式 webSettings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); //该方法指定在页面finish的时候再执行加载图片的动作 webSettings.setLoadsImagesAutomatically(true); // 设置可以支持缩放 webSettings.setSupportZoom(true);// 设置出现缩放工具// webSettings.setBuiltInZoomControls(false); videoRef.setBackgroundColor(0); videoRef.getBackground().setAlpha(0); videoRef.loadDataWithBaseURL(null, html, "text/html", "UTF-8", null);// videoRef.loadData("……", "text/html", "UTF-8"); } /*设置监听器*/// private class MyJavaScriptInterface {// private String url;//// public MyJavaScriptInterface(String url) {// this.url = url;// }//// @JavascriptInterface// public String toString() {// return url;// }// }//// private class MyWebViewClient extends WebViewClient {// @Override// public void onPageFinished(WebView view, String url) {// //这里将字符设置为1,表示加载完成// view.setTag("1");// }//// @Override// public boolean shouldOverrideUrlLoading(WebView view, String url) {// //这里将字符设置为0,表示加载未完成// view.setTag("0");// view.loadUrl(url);// return true;// }//// @Override// public void onReceivedError(WebView view, int errorCode,// String description, String failingUrl) {// //这里将字符设置为0,表示加载未完成// view.setTag("0");// }// }}