Matas Announcing the SoundCloud Widget Javascript API

A lot of developers asked for it and now you can has it: programming level access to the SoundCloud Widget Player.

Via the new Widget API you can access functions like play and pause, show additional info about the currently playing track on your page or even hide our widget and create your own JavaScript based interface for it.

Check out this demo and some code examples. It only takes a few lines like:

soundcloud.addEventListener('onPlayerReady', function(player, data) {
  console.log("widget ready, let's play");
  player.api_play();
});

The Widget API also integrates nicely with the popular JavaScript frameworks jQuery and Prototype.

The source code is available at github together with the documentation.

We’re curious to hear what you think so please post feedback and feature requests in our Google group. You are also welcome to contribute to the project if you think there’s something missing.

  • http://twitter.com/DirtySecretz Dirty Secretz

    I'm not sure if its not quite working right but even just uploading the example files, none of them seem to autoplay or do anything other than a normal embed…

    http://www.dirty-secretz.com/soundcloud/example

    http://www.dirty-secretz.com/soundcloud/example

  • http://twitter.com/DirtySecretz Dirty Secretz

    I'm not sure if its not quite working right but even just uploading the example files, none of them seem to autoplay or do anything other than a normal embed…

    http://www.dirty-secretz.com/soundcloud/example

    http://www.dirty-secretz.com/soundcloud/example

  • thomas

    Just what I was qaiting for

    can't wait to put it to use

    congrats !

  • thomas

    Just what I was qaiting for

    can't wait to put it to use

    congrats !

  • thomas

    Just what I was waiting for

    can't wait to put it to use

    congrats !

  • thomas

    Just what I was waiting for

    can't wait to put it to use

    congrats !

  • matas

    @Dirty Secretz: please make sure you're using the most recent code. The examples in repository: http://github.com/soundcloud/Widget-JS-API/blob

    the examples you've linked to, are still using the old code.

  • matas

    @Dirty Secretz: please make sure you're using the most recent code. The examples in repository: http://github.com/soundcloud/Widget-JS-API/blob

    the examples you've linked to, are still using the old code.

  • http://twitter.com/panoramica_nz Dan Smith

    Good job, thanks Matas! I will have a play in due course…

  • http://twitter.com/panoramica_nz Dan Smith

    Good job, thanks Matas! I will have a play in due course…

  • rediska