I am playing an video from url using MPMoviePlayerViewController class and it is working fine in all version of 3.(3.0,3.1,3.1.2,3.1.3)but in iOS4 video is not play开发者_如何转开发ing ? Have any one track this issue ?
thanks
After struggling 3 to 4 hrs. i Found out the solution of the issue. Here is the solution:
MPMoviePlayerViewController *mpViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:videoUrl];
[self presentMoviePlayerViewControllerAnimated:mpViewController];
[mpViewController.view setCenter:yourView.center];
[mpViewController release];
Cheers !!!!
精彩评论