I have been trying to play a mp4 file, I am receiving url from server, I have given that to MPMoviePlayerController, player is loading but file is not playing. Here is the code…
NSURL *url = [NSURL URLWithString:obj->msg_url]; // obj->url is a html php url not a direct file url.
moviePlayer = [[MPMoviePlayerController alloc]
initWithContentURL:url];
moviePlayer.controlStyle = MPMovieControlStyleDefault;
moviePlayer.shouldAutoplay = YES;
[self.view addSubview:moviePlayer.view];
[moviePlayer setFullscreen:YES animated:YES];
So in this case how can I use MPMoviePlayerController to play from html url. Any idea?
thanks
I have downloaded first and played its working now.