我正在开发一个Android应用程序,我应该创建一个直播淋浴活动。但是有一个我无法解决的问题。问题是:
当我打开活动时。这个屏幕来了:
单击播放按钮时。这来了:(问题是这个屏幕。第四个屏幕应该来了。)我必须按屏幕的左下角(停止按钮)
我该怎么做才能解决这个问题?代码是:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_zindi);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
final String rsp = convertStreamToString(this.getResources().openRawResource(R.raw.ceribin2));
wv = (WebView) findViewById(R.id.webView2);
wv.getSettings().setJavaScriptEnabled(true);
wv.loadDataWithBaseURL("http://zaroktv.com.tr/", rsp, null, "text/html; charset=UTF-8", null);
}
private static String convertStreamToString(InputStream is) {
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
StringBuilder sb = new StringBuilder();
String line = null;
try {
int i = 0;
while ((line = reader.readLine()) != null) {
Log.d("LINE" + (++i), line);
sb.append(line + "\n");
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
is.close();
} catch (IOException e) {
e.printStackTrace();
}
}
return sb.toString();
}
ceribin2.html文件:
<!DOCTYPE html>
<head>
<title>ZarokTV</title>
</head>
<body >
<div class='embed-container'><iframe frameborder="0" src="http://www.dailymotion.com/embed/video/x327os6" style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;" allowfullscreen></iframe></div>
</body>