I am creating an iPhone application that can manage video files. I am using AVFoundation classes (e.g. AVAsset). I just registered my application as a handler for all files matching public.movie (via CFBundleDocumentTypes). However, now my application is displayed in the "Open with" menu for .avi , although I do not think that iOS can play AVI movies (Quick Look preview will try, but it will fail).
Is there a better way to register for movie opening? I will also need to maintain file sharing, so I need to distinguish which files in the Documents folder are also valid movies, although I did not understand how to check the UTI of the file. An overview of iOS technology reads:
Video technologies in iOS support the playback of movie files with the extensions .mov, .mp4, .m4v and .3gp and using the following compression standards:
- H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, low-complexity version of the H.264 base profile with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4 and .mov file formats
- H.264 video, up to 768 kbps, 320 by 240 pixels, 30 frames per second, basic profile up to level 1.3 with AAC-LC audio up to 160 kbps, 48 kHz, stereo audio in .m4v, .mp4 format, and .mov.
- MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple profile with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4 and .mov file formats
- Numerous audio formats, including those listed in the Sound Technology section
Thanks in advance for any advice you may have.
source share