问题
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