Soundcloud Custom Player include buy button

人盡茶涼 提交于 2019-12-24 12:15:14

问题


Working on a player using http://developers.soundcloud.com/docs/custom-player

Want to include a buy button like all the other Soundcloud embeds offer... not in the docs. Anybody have a hacky way to do so? It's running off the same API as the HTML5 widget, so I'm sure there's at least something that can be done.

Thanks for your advice!


回答1:


every track object has a property purchase_url - external purchase link, if exists it should point to 'buy now' url.

check documentation here:

http://developers.soundcloud.com/docs/api/tracks



来源:https://stackoverflow.com/questions/10420970/soundcloud-custom-player-include-buy-button

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