title: How to embed YouTube video on iOS and play it directly on UIWebView without full screen?
body: <p>I am using this code to play YouTube videos on iOS</p>
  
  <pre><code>- (void)embedYouTube:(NSString *)urlString frame:(CGRect)frame
  {
      NSString *htmlString = [NSString stringWithFormat:@"&lt;html&gt;&lt;head&gt;&lt;meta name = \"viewport\" content = \"initial-scale = 1.0, user-scalable = yes, width = 320\"/&gt;&lt;/head&gt;&lt;body style=\"background:#00;margin-top:0px;margin-left:0px\"&gt;&lt;div&gt;&lt;object width=\"320\" height=\"180\"&gt;&lt;param name=\"movie\" value=\"http://www.youtube.com/v/%@&amp;f=gdata_videos&amp;c=ytapi-my-clientID&amp;d=nGF83uyVrg8eD4rfEkk22mDOl3qUImVMV6ramM\"&gt;&lt;/param&gt;&lt;param name=\"wmode\" value=\"transparent\"&gt;&lt;/param&gt;&lt;embed src=\"http://www.youtube.com/v/%@&amp;f=gdata_videos&amp;c=ytapi-my-clientID&amp;d=nGF83uyVrg8eD4rfEkk22mDOl3qUImVMV6ramM\"type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"320\" height=\"180\"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;", urlString, urlString];
  
      UIWebView *videoView = [[UIWebView alloc] initWithFrame:frame];
      [videoView loadHTMLString:htmlString baseURL:nil];
      [self.view addSubview:videoView];
      [videoView release];
  }
  </code></pre>
  
  <p>It works like charm but I want a different behaviour. Now a thumbnail of the video appears on the webview (nice!) but when I tap the play icon it opens in full screen. I need that playback is done in the same window since I need to show more stuff.</p>
  
  <p>Any clue of how making that? Thansk in advance</p>