I am researching for a project and was wondering if I can use SoundCloud API for making and app that streams music with SoundCloud. I could not find any official source from SoundCloud to privde a Java solution.
Any idea?
You need to get your client_id and client_secret by registering your app here. After you have obtained that, you can start using the API. Basically, most of the calls will look like this one: final SoundCloud api = new SoundCloud.
To access the SoundCloud® API, you will first need to register your app at https://soundcloud.com/you/apps using your SoundCloud® account. When you've done that, we'll issue you with a client ID and client secret. Your client ID is required for all calls to the SoundCloud® API.
The official SoundCloud Android app lets you easily access, browse and listen to the sounds shared to you while you're on the road and away from your computer. The app also includes recording functionality that lets you capture any sound around you and instantly save it in the 'Cloud.
Go to Soundcloud developer site
Click on My Apps.. Sign in Register your new app Once you register you will have client id and client secret. Note it
https://api.soundcloud.com/tracks/"TRACK ID"/stream?client_id="YOUR CLIENT ID"
This API url will give you the sound file you want to play. You can use this url and parse the track id to play according to your need.
You can play around the url with different stuffs like getting user details,playlists.
Refer this link for more API reference
I update a library for new versions of android: https://github.com/chemalarrea/soundcloudapi-android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With