Ron Buencamino
Ron Buencamino

Reputation: 384

SoundCloud API Stream Quality

I've been working on an iOS app that streams DJ mixes from SoundCloud. The mixes are roughly 2 hours in length.

I was reading the App Store guidelines and item 9.3 has me a bit concerned: https://developer.apple.com/appstore/resources/approval/guidelines.html#media-content

9.3 - Audio streaming content over a cellular network may not use more than 5MB over 5 minutes

I was wondering if there was a way to retrieve a low quality stream so I can give users a choice of what quality stream they would like to listen to.

...Or - if there are people with experience with a similar situation - how are you guys addressing this App Store guideline?

Upvotes: 2

Views: 891

Answers (1)

Jan Berkel
Jan Berkel

Reputation: 3453

The mp3s SoundCloud delivers in the stream are encoded in 128kbit CBR.

128kbit/s = 0.9375 MB / min (use google conversion tool)

5 minutes of stream = 4.6875 MB (+ a little bit of overhead).

So you're still within the bounds of Apple's requirements with the default streaming quality.

Upvotes: 2

Related Questions