Reputation: 1152
I am trying to load the HTML5 SoundCloud widget and immediately start playing track 30 from a set.
My code looks like:
<iframe id="sc-widget" src="https://w.soundcloud.com/player/?url=http://soundcloud.com/drasla&start_track=30&auto_play=true></iframe>
However, this starts only playing track #25. The widget seems to paginate the data and only pulls the first 25 tracks at first unless the user scrolls down.
I have tried passing a limit=100
parameter into the URL, but this doesn't seem to increase the initial load.
Is there anyway to immediately skip to a track after #25 using the widget?
Upvotes: 3
Views: 256
Reputation: 47229
Create a playlist for the artist, add tracks, then setup your widget code:
https://w.soundcloud.com/player/?url=https://api.soundcloud.com/playlists/<playlist_number>?start_track=<track_number>&auto_play=true
You'll notice the player jumps directly to track #38 in the example.
Upvotes: 2