Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Autoplay track on load of embedded player from URI/URL

Received: by 10.68.232.169 with SMTP id tp9mr20677644pbc.6.1332798829801;
        Mon, 26 Mar 2012 14:53:49 -0700 (PDT)
X-BeenThere: soundcloudapi@googlegroups.com
Received: by 10.68.243.163 with SMTP id wz3ls9417098pbc.3.gmail; Mon, 26 Mar
 2012 14:53:49 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.234.194 with SMTP id ug2mr3817856pbc.9.1332798829068; Mon,
 26 Mar 2012 14:53:49 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
 cory.kla...@gmail.com designates internal as permitted sender)
 smtp.mail=cory.kla...@gmail.com; dkim=pass
 header...@gmail.com
Received: by jx17g2000pbb.googlegroups.com with HTTP; Mon, 26 Mar 2012
 14:53:49 -0700 (PDT)
Date: Mon, 26 Mar 2012 14:53:49 -0700 (PDT)
In-Reply-To: <CADySsRd_ue0+5L0KhASJAEPH+OsTQ_wPncTexXXqg6Eky+tGNQ@mail.gmail.com>
References: <1aeac737-ed89-4dde-ad88-4681e5bdb389@4g2000pbz.googlegroups.com>
 <CADySsRcAAkENahuu4Mb=6YrD5o0xDk_s-3f-ZhBbAYA6KJ4RBA@mail.gmail.com>
 <aa11762f-ad8a-4bbb-ba1e-593829eda9c0@qt7g2000pbc.googlegroups.com>
 <CADySsRdb1TDa2arOi9Uri7tnvF5k2GmuWQpc-+ovdPyBvC6OUA@mail.gmail.com>
 <d1042019-c436-4de0-8816-47bbf1a319e3@9g2000pbd.googlegroups.com>
 <CADySsRfZTuLyqgS9g9=HHj3gkcz47ZiSi9k0vzboB6tRO_8Srw@mail.gmail.com>
 <af8a2b67-1a19-45b8-9542-5fa32069096e@qt10g2000pbb.googlegroups.com> <CADySsRd_ue0+5L0KhASJAEPH+OsTQ_wPncTexXXqg6Eky+tGNQ@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3)
 AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11,gzip(gfe)
Message-ID: <1ce2d750-6950-4f83-959a-d822a42df00e@jx17g2000pbb.googlegroups.com>
Subject: Re: Autoplay track on load of embedded player from URI/URL
From: "Mr. Magoo" <cory.kla...@gmail.com>
To: SoundCloudAPI <soundcloudapi@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Fantastic!

I got this all working.

I'll admit I wish I could have this kind of functionality on the Set
Player rather than having to load individual tracks.  But I guess that
is a limitation of the Set vs. Individual track Players...

Thanks for all of the great help!

- Cory

On Feb 22, 12:33=A0pm, Matas Petrikas <matas.petri...@gmail.com> wrote:
> Hey Cory,
>
> no, you only need an empty div where the embed code will be rendered
> by the script:
> <div id=3D"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 loa=
d.
>
> In case you have a problem, please post a url of your page, so we
> could have a look at it.
>
> Greets,
> Matas
>
>
>
>
>
>
>
>
>
> On Wed, Feb 22, 2012 at 6:41 AM, Mr.Magoo<cory.kla...@gmail.com> wrote:
> > I feel a bit lame for asking this...
>
> > But, should I have the player widget code already present on the page
> > in div for the jquery code to modify?
>
> > Yes... Obviously I'm a bit new to jQuery...
>
> > Thanks for all of the assistance!
>
> > - Cory
>
> > On Feb 14, 3:28=A0am, Matas Petrikas <matas.petri...@gmail.com> wrote:
> >> hey,
>
> >> On Mon, Feb 13, 2012 at 8:50 PM, Mr.Magoo<cory.kla...@gmail.com> wrote=
:
> >> > Thanks for the help Matas.
>
> >> > Two quick questions though..
>
> >> > 1) =A0Where do =A0I 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 likehttp://example.com/mytracks?track_id=3D3223234orhttp://exampl=
e.com/mytr......
>
> >>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=3D1234, a=
nd
> >> > 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
>
> >> > On Feb 9, 2:36=A0am, Matas Petrikas <matas.petri...@gmail.com> wrote=
:
> >> >> hey,
>
> >> >> 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 i=
n
> >> >> the url:https://gist.github.com/1779157
>
> >> >> Let me know if that works ok for you!
>
> >> >> greets,
> >> >> Matas
>
> >> >> On Thu, Feb 9, 2012 at 5:10 AM, Mr.Magoo<cory.kla...@gmail.com> wro=
te:
> >> >> > I'm sorry I didn't clarify more in my original post.
>
> >> >> > I would like to pass the command to play a specific track from th=
e url/
> >> >> > uri that a user enters so that an embedded player will play the t=
rack
> >> >> > that I specify.
>
> >> >> > For example I can sharehttp://domain.com/page.html?command=3D1234=
with
> >> >> > someone and the page will load the embedded player to track-id 12=
34.
>
> >> >> > On Feb 8, 3:00=A0am, Matas Petrikas <matas.petri...@gmail.com> wr=
ote:
> >> >> >> hey,
>
> >> >> >> yes you can! Pelase try combining two options - auto_play and
> >> >> >> start_track, e.g. like
>
> >> >> >> <iframe width=3D"100%" height=3D"450" scrolling=3D"no" framebord=
er=3D"no"
> >> >> >> src=3D"http://w.soundcloud.com/player/?url=3Dhttp%3A%2F%2Fapi.so=
undcloud.com%2..."></iframe>
>
> >> >> >> more info about the widget options can be found here:http://deve=
lopers.soundcloud.com/docs/widget
>
> >> >> >> Greets,
> >> >> >> Matas
>
> >> >> >> On Tue, Feb 7, 2012 at 8:31 PM, Mr.Magoo<cory.kla...@gmail.com> =
wrote:
> >> >> >> > It there a way to have an embedded set player autoplay a speci=
fied
> >> >> >> > track in the set?
>
> >> >> >> > For example:
>
> >> >> >> > The set player is embedded on mypage.html @ mydomain.com.
>
> >> >> >> > I can send people tohttp://mydomain.com/mypage.htmlandtheywill=
get
> >> >> >> > the default player loaded to the latest track in a set.
>
> >> >> >> > Can I pass a command to the embedded player from the url to au=
toplay a
> >> >> >> > track in the set?
>
> >> >> >> > Something like:
>
> >> >> >> >http://mydomain.com/mypage.html?command=3Dtrackid
>
> >> >> >> > I know I can send people to individual tracks at soundcloud.co=
m; but
> >> >> >> > in this case it would be best to have people coming to my doma=
in
> >> >> >> > instead of soundcloud.com, and I'm trying to avoid setting up =
a new
> >> >> >> > blog just for soundcloud postings.
>
> >> >> >> > Thanks for any help,
>
> >> >> >> > - Cory
>
> >> >> >> > --
> >> >> >> > You received this message because you are subscribed to the Go=
ogle Groups "SoundCloudAPI" group.
> >> >> >> > To post to this group, send email to soundcloudapi@googlegroup=
s.com.
> >> >> >> > To unsubscribe from this group, send email to soundcloudapi+un=
subscribe@googlegroups.com.
> >> >> >> > For more options, visit this group athttp://groups.google.com/=
group/soundcloudapi?hl=3Den.
>
> >> >> >> --
> >> >> >> Matas Petrikas
>
> >> >> >>http://soundcloud.com/matas
>
> >> >> > --
> >> >> > You received this message because you are subscribed to the Googl=
e Groups "SoundCloudAPI" group.
> >> >> > To post to this group, send email to soundcloud...@googlegroups.c=
om.
> >> >> > To unsubscribe from this group, send email to soundcloudapi+unsub=
scribe@googlegroups.com.
> >> >> > For more options, visit this group athttp://groups.google.com/gro=
up/soundcloudapi?hl=3Den.
>
> >> >> --
> >> >> Matas Petrikas
>
> >> >>http://soundcloud.com/matas
>
> >> > --
> >> > You received this message because you are subscribed to the Google G=
roups "SoundCloudAPI" group.
> >> > To post to this group, send email to soundcloudapi@googlegroups.com.
> >> > To unsubscribe from this group, send email to soundcloudapi+unsubscr=
ibe@googlegroups.com.
> >> > For more options, visit this group athttp://groups.google.com/group/=
soundcloudapi?hl=3Den.
>
> >> --
> >> Matas Petrikas
>
> >>http://soundcloud.com/matas
>
> > --
> > You received this message because you are subscribed to the Google Grou=
ps "SoundCloudAPI" group.
> > To post to this group, send email to soundcloudapi@googlegroups.com.
> > To unsubscribe from this group, send email to soundcloudapi+unsubscribe=
@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/sou=
ndcloudapi?hl=3Den.
>
> --
> Matas Petrikas
>