如何在 Java 中使用 SoundCloud API(Android 应用程序) [英] How to use SoundCloud API in Java (Android App)

查看:34
本文介绍了如何在 Java 中使用 SoundCloud API(Android 应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个项目,想知道是否可以使用 SoundCloud API 来制作和使用 SoundCloud 流式传输音乐的应用程序.我找不到来自 SoundCloud 的任何官方资源来提供 Java 解决方案.

有什么想法吗?

解决方案

转到 Soundcloud 开发者网站

点击我的应用程序.. 登录 注册您的新应用程序注册后,您将拥有客户端 ID 和客户端密码.注意

https://api.soundcloud.com/tracks/"TRACK ID"/stream?client_id="您的客户 ID"

这个 API url 会给你你想要播放的声音文件.您可以使用此网址并根据需要解析曲目 ID 进行播放.

您可以使用不同的内容来处理 url,例如获取用户详细信息、播放列表.

请参阅此链接以获取更多 API 参考

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?

解决方案

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

这篇关于如何在 Java 中使用 SoundCloud API(Android 应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆