I’m looking to add previous and next buttons to the SoundCloud custom player, which can be found here.
If you check out the SoundCloud Widget Methods you can see it has:
prev();
next();
Just to be more specific, I’m working with Playlists and I’m not sure how to incorporate this into the javascript file so that it hooks in with the player?
Umm, it’s right on top of the page that you are linking to:
This means (as also quoted from the docs):
Then you propably just have to do:
EDIT:
Since you are using the Custom Player (that has no documented interface) and not the HTML5 widget you could use the approach I shamelessly copied from here: https://gist.github.com/1509934
Use a function like this:
To get the item that is the current “nextTrack” and then use jQuery or something else to trigger a click on that link:
Worked fine in my console….
EDIT 2
Just to clarify, this worked! All I did was add a link with the class ‘sc-next’ and wrote this: