I have a "private browser" application on the AppStore now and am looking for a way to fix a rather annoying problem. I'm not sure why it happens at all. I don't use anything but the UIWebView to load audio/video files that are clicked in browser.. This works great. Launches the players automatically and the video or audio file plays. But sometimes (and often enough for it to get annoying), a video file will take forever to load and then I get an alert view that says "This Movie Format is Not Supported" ..
I'm loading these files from sites that support the iPhone and the reason I'm really confused is that if I try again once or twice more.. 90% of the time, the video will EVENTUALLY finally take. How can a format not be supported if it eventually plays?
Anyone else run into this and does anyone know how to get around it? I don't think it happens in Simulator at all, so it appears to be a device issue.. Thanks!
I've gotten the same alert for my movie as well for certain devices, but not all devices. What happened was that I could view my movie with iPod Touch 2nd Gen and iPhone 3GS, but not on iPhone 3G.
It turned out that my movie file was not compressed right for iPhone OS. I re-compressed the file to other format, and now it works on all devices.
This is from the document:
"This class supports any movie or audio files that already play correctly on an iPod or iPhone. 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)
If you use this class to play audio files, it displays a white screen with a QuickTime logo while the audio plays. For audio files, this class supports AAC-LC audio at up to 48 kHz, and MP3 (MPEG-1 Audio Layer 3) up to 48 kHz, stereo audio."
It's good to know I'm not the only one who is having this problem.. But these aren't my videos I'm trying to view. It's a general purpose web browser, so the videos can come from anywhere. I could understand if the video files just didn't play at all, but the strange part I'm trying to figure out is why they only work SOMETIMES.. I'd figure if it can play the video once, then it's obviously supported. heh. *shrug*