views:

333

answers:

2

Apache webserver setup

added:

AddType application/x-mpegURL .m3u8
AddType video/MP2T .ts

to "httpd.conf" file.

Movie file preparation

  • I have 3 movie files (9mb - 25mb each).
  • Used QuickTime to convert movies into iPhone format.
  • Used mediafilesegmenter to convert .m4v into 10-second segments of .ts files, with an accompanying .m3u8 file.
  • Placed these in a folder on webserver.

iPhone App implementation

Question

  • Will I still get rejected by apple for bandwidth issues over the 3G and/or Edge network?
  • Do I need to somehow check which network the end-user is on first? And then provide a different movie accordingly? If so, how do I do that ...?

Thank you in advance,

Eugene

+1  A: 

To answer your second bullet-point first, the SDK does that all for you. Determining what quality to stream is not the concern of the developer.

To answer your first bullet-point, I haven't submitted my Live Streaming app so I don't know for sure, but I believe you will be rejected if you don't have a 64k stream. To be sure, check out Requirements for Apps, which is as definitive a list of requirements that you could probably get.

bpapa
So it appears that I don't have to do anything on the iPhone, if I'm directing the UIWebView to a .m3u8 file, am I correct?Is the bandwidth issue server related? File-related?
yujean
+1  A: 

We were rejected when we first submitted our mp3 streamer to the app store for excessive bandwidth use. Then we hobbled the app to limit its downloads to 4.5 meg in 5 min, which was accepted by Apple.

You can review that thread for more info on the issue.

Michael
How did you "hobble" your app? By simply lowering the quality of your mp3's?I heard that using AAC-format + mono significantly reduces files size while avoiding extreme loss in sound quality.
yujean
Matt Gallagher at Cocoa with Love blog wrote us some custom code http://cocoawithlove.com/2010/03/streaming-mp3aac-audio-again.html and specific to throttling here: http://cocoawithlove.com/2010/04/network-data-requirements-on-iphone-os.html
Michael