sample code to play .3gp file on iPhone

Hi,
I am developing an application in which I need to play .3gp video file.
Does any body know how to play .3gp file programmatically in iPhone?

MacMini, Mac OS X (10.3.x)

Posted on Nov 15, 2010 11:21 PM

Reply
1 reply

Nov 16, 2010 3:13 AM in response to shaktirsg

You know, I normally encourage people to ask whatever questions they feel are important to them on these forums, and, if I'm able, I tend to answer "the easy ones" around here.

In the spirit of not making "worthless posts" I am going to point you to _the documents you need to read and definitely should have looked up_ prior to posting such a basic question. And _I specifically encourage you_ to use the forums for answers you can't find so bloody easily.... You're lucky I'm not one of those one-line response, "read the docs" people, because I doubt many people here have the patience to answer this type of question.

From, http://developer.apple.com/library/ios/documentation/MediaPlayer/Reference/MPMov iePlayerController_Class/
"This class plays any movie or audio file supported in iOS. This includes both streamed content and fixed-length files. For movie files, this typically means files with the extensions .mov, .mp4, .mpv, and .3gp and using one of the following compression standards:

H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. (The Baseline profile does not support B frames.)
MPEG-4 Part 2 video (Simple Profile)"

http://developer.apple.com/library/ios/codinghowtos/AudioAndVideo/#VIDEO-PLAYVIDEO_ONIPHONE

http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/Mult imediaPG/UsingVideo/UsingVideo.html

http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/LoadingRe sources/ImageSoundResources/ImageSoundResources.html

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

sample code to play .3gp file on iPhone

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.