I have a video in my iPhone application documents directory. I am want to play that using mpmovieplayercontroller. can some one post code to do this.
Thanks,
Naresh
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a link to the docs for mpmovieplayercontroller:
http://developer.apple.com/iphone/library/documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/MPMoviePlayerController/MPMoviePlayerController.html#//apple_ref/occ/instm/MPMoviePlayerController/initWithContentURL:
It’s as simple as creating a url to the local file using:
Then passing this url into: