I’m trying to turn submitted Soundcloud links on my website into SoundCloud HTML5 players. I read that this is possible with oEmbed but haven’t gotten it to work myself yet. What I know is that I should use the following oEmbed URL:
http://soundcloud.com/oembed?format=js&url=[escaped_url]&iframe=true
However, I have no idea what to do with it. When I have an escaped SoundCloud URL and replace it with [escaped_url], what’s my next step? How do I exactly use that link to generate the SoundCloud HTML5 player?
Send a request to that URL, and the response will be a JSON file containing all the information you need to create the widget.
Here’s an example:
Just grab the
htmlproperty and stick that in your document and that should be it.