I have downloaded two .mov files from internet and add it to resource folder in my project.
Then i play both video files using MPMoviePlayerController..
One file play audio and video ,but another one only plays audio file not video…
Can anyone help me ?
Thanks in advance……..
Both files are .mov files.
I would check the video encoding of the files. MOV files can contain a whole bunch of different video codecs (audio too) and if you downloaded them from the Internet, there could be a chance that it was encoded with a video codec not supported on the iPhone. That would explain why one plays and the other only plays audio (can’t read video).
I’d try re-encoding as H.264 content (maybe as an MP4 too…) in Quicktime (or whatever else video encoding software you might have) and see if both are being played or if you’re still only getting one to play.
Edit
The iPhone SDK has this to say about MPMoviePlayerController and its supported formats