title: Playing youtube video in UIWebView only using iFrame
body: <p>I'm trying to play youtube videos on my <code>UIWebView</code> using <code>&lt;iframe&gt;</code> tag with below code - </p>
  
  <pre><code>NSString *html = @"\
  &lt;html&gt;&lt;head&gt;\
  &lt;style type=\"text/css\"&gt;\
  body {    background-color: transparent;\
  color: white; \
  }\
  &lt;/style&gt;\
  &lt;/head&gt;&lt;body style=\"margin:0\"&gt;\
  &lt;iframe class=\"youtube-player\" width=\"300\" height=\"300\" src=\"http://www.youtube.com/embed/efRNKkmWdc0\" frameborder=\"0\" allowfullscreen=\"true\"&gt;&lt;/iframe&gt;\
  &lt;/body&gt;&lt;/html&gt;";
  
  UIWebView *videoView = [[UIWebView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 460.0)];
  [videoView loadHTMLString:html baseURL:nil];
  </code></pre>
  
  <p>Its working fine.</p>
  
  <p><img src="https://i.stack.imgur.com/jz4BS.png" alt="enter image description here"></p>
  
  <p>But, i need to play this on webview itself not using iPhone default player. How do i restrict this to play on <code>UIWebView</code> only. I was defined the <code>iframe</code> player class as <code>class=\"youtube-player\"</code> also. But, its taking iPhone's default player.</p>
  
  <p>Any idea appreciated!</p>