I want to play a video on a same view on a button click.
NSURL *movieUrl = @"Some Url";
CGRect frame;
frame =CGRectMake(10,10,100,100);
MPMoviePlayerViewController *player = [[MPMoviePlayerViewController alloc] initWithContentURL:movieUrl];
[self.view addSubview:player.view];
player.view.frame = frame;
[player release];
when I run this, it shows a frame with black background but does not play the video. I am not using youtube video.