固定フレームでYouTubeを再生しようとしているチューブフィードを含むjsonフィードを解析しています。ボタンをクリックすると黒い背景が表示されます。以下のコードを手伝ってください。
-(void)watchClip:(id)sender
{
NSLog(@"hello how should this be:%@",URL);
NSURL *fileURL=[NSURL URLWithString:[URL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
MPMoviePlayerController *moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
moviePlayerController.view.frame=CGRectMake(28,15,250,130);
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackComplete:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:moviePlayerController];
//moviePlayerController.fullscreen = YES;
[v addSubview:moviePlayerController.view];
[moviePlayerController play];
}