How to use SoundCloud API in Java (Android App)

≡放荡痞女 提交于 2019-12-03 07:58:41

问题


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?


回答1:


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




回答2:


I update a library for new versions of android: https://github.com/chemalarrea/soundcloudapi-android




回答3:


I know it's too late, but in case if somebody else is stuck.

You can check out this repository. It's a simple wrapper of the SoundCloud API built with Retrofit2 and RxJava.



来源:https://stackoverflow.com/questions/26112014/how-to-use-soundcloud-api-in-java-android-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!