Problem in displaying Video from youtube url
i am working in playing video from url.I write below code for play video.
NSURL *fileURL = [NSURL URLWithString:@"http://www.ebookfrenzy.com/ios_book/movie/movie.mov"];
moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
[moviePlayerController.view setFrame:CGRectMake(0, 70, 320, 270)];
[mainView addSubview:moviePlayerController.view];
moviePlayerController.fullscreen = YES;
[moviePlayerController play];
above code working fine for that url.Instead of this url,i tried with NSURL *fileURL = [NSURL URLWithString:@"http://www.youtube.com/watch?v=6uW-E496FXg"];
it's not working..it showing black screen..May i know what's wrong this code..
Thanks in advance..
|