i want to play a video on the link: www.mysite.com/iphone/video.mp4
i use ios5 and MPMoviePlayerController i tried with the following code but it only shows a black page:
MPMoviePlayerController *player=[[MPMoviePlayerController alloc]initWithContentURL:[NSURL URLWithString:@"http://www.mysite.com/iphone/video.mp4"]]; [[player view] setFrame:[self.view.bounds]]; [self.view addSubview:[player view]]; [player play];
is it possible to play a video by the web url string? i have many videos so i dont want to put them in my project so i need to play it from web
@Edit: I done it with the example on the apple's developer site
it uses stream but solves my problem because i use a web url. thanks for all answers