NSString *embedHTML = @"\
<html><head>\
<style type=\"text/css\">\
body {
background-color: transparent;
color: white;
}
</style>
</head><body style=\"margin:0\">\
<embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" \
width=\"%0.0f\" height=\"%0.0f\"></embed>\
</body></html>";
used this script to play videos and its working fine with iPhone but not with iPad. frame not get set.
NSString* html = [NSString stringWithFormat:embedHTML, str_url];
[web_View loadHTMLString:html baseURL:nil];
[web_View scalesPageToFit];
web_View.scrollView.bounces=NO;