title: How to embed youtube player in iphone app
body: <p>I had gone through with the previous question and wrote simple code..</p>
  
  <pre><code>- (void)embedYouTube:(NSString *)urlString frame:(CGRect)frame {
      NSString *embedHTML = @"\
      &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;video src=\"point/to/mov\"&gt;&lt;/video&gt;\
      &lt;embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" \
      width=\"%0.0f\" height=\"%0.0f\"&gt;&lt;/embed&gt;\
      &lt;/body&gt;&lt;/html&gt;";
      NSString *html = [NSString stringWithFormat:embedHTML, urlString, frame.size.width, frame.size.height];
      UIWebView *videoView = [[UIWebView alloc] initWithFrame:frame];
      [videoView loadHTMLString:html baseURL:nil];
      //[videoView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=WL2l_Q1AR_Q"]]];
      [self.view addSubview:videoView];
      [videoView release];
  }
  </code></pre>
  
  <p>if use the "html" is it not showing...
  but we load the url directly as i commented it is working fine...</p>
  
  <p>Can anyone help me out of this issue..</p>