Reputation: 5006
I have html5 audio player written using soundmanager2.
In my jquery I would need to get track urls and titles for my player from the link like this:
http://soundcloud.com/officialswedishhousemafia/sets/rootmusic-bandpage
or this for example:
http://gidilounge.fm/?feed=podcast
Is this possible?
Upvotes: 0
Views: 2209
Reputation: 4117
I'd recommend using the SoundCloud JavaScript SDK (which incidentally includes soundManager2 for streaming support). If all you have is the set URL, you could use the resolve endpoint to get an id and a proper representation of the resource:
SC.initialize({
client_id: 'foo'
});
var set_url = "http://soundcloud.com/officialswedishhousemafia/sets/rootmusic-bandpage";
SC.get('/resolve', { url: track_url }, function(set) {
$(set.tracks).each(function(i, track) {
console.log(track.title);
});
});
That should allow you to get all the information about tracks that you need.
Upvotes: 2
Reputation: 5782
SoundCloud has an open API: http://developers.soundcloud.com/
Hope that's what you're looking for.
Upvotes: 1