ios - How to open youtube in webview in ios7 -


i'm trying load youtube in uiwebview in ios7 device using embedded string,its not loading. in simulator , below ios7 devices working good. please suggest me how solve this. i'm using below,

 nsstring *htmlstring = [nsstring stringwithformat:@"<html><head><meta name = \"viewport\" content = \"initial-scale = 1.0, user-scalable = yes, width = 320\"/></head><body style=\"background:#00;margin-top:0px;margin-left:0px\"><div><object width=\"320\" height=\"180\"><param name=\"movie\" value=\"http://www.youtube.com/v/%@&f=gdata_videos&c=ytapi-my-clientid&d=ngf83uyvrg8ed4rfekk22mdol3quimvmv6ramm\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/%@&f=gdata_videos&c=ytapi-my-clientid&d=ngf83uyvrg8ed4rfekk22mdol3quimvmv6ramm\"type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"768\" height='%0.0f'></embed></object></div></body></html>", strurl, strurl,webview.frame.size.height]; 


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -