iPhone app rejected for “transferring excessive volumes of data”

前端 未结 6 1542
长发绾君心
长发绾君心 2020-12-03 15:43

Our lovely app that downloads mp3s from our server into a local file on the phone then plays from that file was rejected for using too much bandwidth.

I understand t

6条回答
  •  时光取名叫无心
    2020-12-03 16:39

    Have you considered HTTP Live Streaming? It's built into OS 3.0.

    Basically, you split your media into small (say, 10 second) snippets and put it on a standard web-server. Then you create little text 'meta-descriptor' files in EXTM3U format that point out where the bits are. The interesting thing is that you can create multiple versions of each snippet at different bit-rates. So if your bandwidth is good, the iPhone player dynamically chooses the higher bit-rates but when it's low it automatically switches to the lower bit-rate version of the snippet. It does this on-the-fly to adapt to changing conditions.

    So if you split your MP3 into multiple 10-second bits at say, 3 different bit-rates then when the user is connected through WiFi they get the high-quality stuff but if they're on 3G or EDGE they get progressively lower-quality (and smaller sized) content.

    If this violates your downloadable media concept, then perhaps you can use the same trick and keep multiple size files for each connection type. Then if you're on WiFi (or get a fast turnaround on a heartbeat ping to the server) download the big file vs. medium or small size ones.

    Here's a decent step-by-step on segmenting content. They focus on video but it should work with audio content as well.

提交回复
热议问题