¿Reproduce videos de YouTube en la aplicación de iPhone sin usar UIWebView?

Quiero reproducir videos de YouTube desde la aplicación de mi iPhone. Tengo que intentar reproducir videos de YouTube en mi aplicación de iPhone con los siguientes códigos,

[self playVideo:@"http://www.youtube.com/watch?v=WL2l_Q1AR_Q" frame:CGRectMake(20, 70, 280, 250)];

- (void)playVideo:(NSString *)urlString frame:(CGRect)frame
{
    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>";
    NSString *html = [NSString stringWithFormat:embedHTML, urlString, frame.size.width, frame.size.height];
    UIWebView *videoView = [[UIWebView alloc] initWithFrame:frame];
    [videoView loadHTMLString:html baseURL:nil];
    [self.view addSubview:videoView];
    [videoView release];
    NSLog(@"%@",html);
}

Pero, este código no funciona para mí. Y también lo he intentado conMPMoviePlayerController el código es,

NSURL *fileURL = [NSURL URLWithString:@"http://www.youtube.com/watch?v=WL2l_Q1AR_Q"];
MPMoviePlayerController *moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL]; 
[moviePlayerController.view setFrame:CGRectMake(0, 70, 320, 270)]; 
[self.view addSubview:moviePlayerController.view];  
moviePlayerController.fullscreen = YES;  
[moviePlayerController play];

Esto tampoco funciona para mí. ¿Alguien puede decirme dónde hice mal y sugerirme alguna idea? Quiero reproducir los videos de YouTube enMPMoviewPlayerController en lugar de usarUIWebView. Gracias por adelantado

Respuestas a la pregunta(10)

Su respuesta a la pregunta