i am developing an application which can play youtube video in webview using iframe.
my code is given below :
String summary = "<iframe height='"
+ displayWidth
+ "' width='"
+ 800
+ "' frameborder='0' src='http://www.youtube.com/embed/ZfekaIW6esA?rel=0'></iframe>";
if (flashInstalled) {
mWebView.loadData(summary, "text/html", null);
container.addView(mWebView);
} else {
alert.setMessage("Flash player is not installed on the device!");
alert.show();
}
its working fine but when i zoom it and scroll it then it will overlaps the other layout
Look at my screen shots


plz give me the better solution for this. thanx
I think your Iframe width and height are more than Webview width and height. Decrease the size of Iframe. If you want a larger size, increase the size of webview.