如何使用SoundCloud API在Java中(Android应用程序) [英] How to use SoundCloud API in Java (Android App)
问题描述
我研究的一个项目,并想知道如果我可以使用SoundCloud API制作和应用程序,流音乐SoundCloud。我找不到从SoundCloud任何官方消息,以privde一个Java的解决方案。
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.
你知道吗?
推荐答案
点击我的应用..登录注册你的新的应用程序 一旦你注册,你将有客户端ID和客户端密钥。注意它
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/流?CLIENT_ID = 您的客户端ID
https://api.soundcloud.com/tracks/"TRACK ID"/stream?client_id="YOUR CLIENT ID"
这个API网址给你,你要播放的声音文件。您可以使用此URL,并解析轨道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.
您可以围绕URL以不同的东西像获取用户信息,播放列表播放。
You can play around the url with different stuffs like getting user details,playlists.
这篇关于如何使用SoundCloud API在Java中(Android应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!