请!有人告诉我!如何在WebView中播放视频???
wv = (WebView) findViewById(R.id.webView);
wv.setWebViewClient(new WebViewClient());
wv.getSettings().setAllowFileAccess(true);
wv.getSettings().setJavaScriptEnabled(true);
wv.loadUrl("http://m.ochepyatki.ru/video.php?vkey=be38112&f=11395221100");
答案 0 :(得分:0)
在AndroidManifest.xml中添加
android:hardwareAccelerated="true"
例如:
<application
android:allowBackup="true"
android:debuggable="false"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<activity>...</activity>
</application>