yes you can! Pelase try combining two options - auto_play and
start_track, e.g. like
<iframe width="100%" height="450" scrolling="no" frameborder="no"
src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F1045510&show_artwork=true&auto_play=true&start_track=5"></iframe>
more info about the widget options can be found here:
http://developers.soundcloud.com/docs/widget
Greets,
Matas
> --
> You received this message because you are subscribed to the Google Groups "SoundCloudAPI" group.
> To post to this group, send email to soundc...@googlegroups.com.
> To unsubscribe from this group, send email to soundcloudap...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/soundcloudapi?hl=en.
>
--
Matas Petrikas
here's a short jQuery script that I've written that wil generate an
auto-playing soundcloud widget based on the track_id value passed in
the url:
https://gist.github.com/1779157
Let me know if that works ok for you!
greets,
Matas
> For more options, visit this group at http://groups.google.com/group/soundcloudapi?hl=en.
On Mon, Feb 13, 2012 at 8:50 PM, Mr. Magoo <cory....@gmail.com> wrote:
> Thanks for the help Matas.
>
> Two quick questions though..
>
> 1) Where do I find my track IDs?
what data about the sound do you have available? do you have their
SoundCloud url?
then, the script should be updated. This version would accept both
urls like http://example.com/mytracks?track_id=3223234 or
http://example.com/mytracks?track_url=http://soundcloud.com/matas/hobnotropic
https://gist.github.com/1779157
>
> 2) So I'll pass my track id from the url to the jquery function you've
> created.. something like: mydomain.com/mypage.html?trackid=1234, and
> your function will take "trackid" ?
yes, that's the idea - you pass the value in the url and the script
reads that out and generates a widget for that sound.
Greets,
Matas
> For more options, visit this group at http://groups.google.com/group/soundcloudapi?hl=en.
no, you only need an empty div where the embed code will be rendered
by the script:
<div id="player"></div>
so the 4 components that need to be there:
1. page has to be called with a track_id or track_url parameter
2. page code needs to contain the empty div with an id "player"
3. page code needs to have jQuery.js embedded somehow
4. page needs to contain the script I've written
If these all are fulfilled, you should see a playing widget on a page load.
In case you have a problem, please post a url of your page, so we
could have a look at it.
Greets,
Matas
> For more options, visit this group at http://groups.google.com/group/soundcloudapi?hl=en.