Jump to content

Streaming Audio


Luke

Recommended Posts

ApiClient now has a method called GetAudioStreamUrl, which you can use to construct a url for audio playback.

 

The idea is you specify as many output formats as your device can handle, so that we can try and avoid encoding whenever possible, since that's put a load on your server's cpu. When we can avoid encoding, we can just serve the original file directly, which will allow the user to seek during playback.

 

The more params you specify, the greater the chances are that we'll have to encode, so try to omit as many of them as possible.

Link to comment
Share on other sites

Recommended values:

 

Windows Phone 7:

 

Output formats: mp3,wma,(aac?)

Audio Channels: 2

Audio Sample Rate: Omit

 

Metro:

 

Output formats: mp3,wma,(aac?)

Audio Channels: 2 (or have device-dependant settings to make this more robust)

Audio Sample Rate: Omit

 

Android:

 

Output formats: mp3,aac

Audio Channels: 2

Audio Sample Rate: Omit

 

iOS:

 

Output formats: mp3,aac

Audio Channels: 2

Audio Sample Rate: Omit

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...