How can I play a .mp4 or .mov video from either an Internet URL or a local file in iOS?
Share
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.
1.First of all add MediaPlayer.Framework in XCode
2.Then add #import < MediaPlayer/MediaPlayer.h > in your viewController’s .h file
3.Now implement this code in your viewDidLoad Method
For Orientation Please add this code
In this code moviePlayerController is MPMoviePlayerController declared in .h file