Jump to content
IGNORED

Support for new Bandcamp players


Recommended Posts

  • 3 months later...

I'm a moron. I can't figure out how to do this.

 

This is the embed code from bandcamp:

 

<iframe style="border: 0; width: 100%; height: 42px;" src="http://bandcamp.com/EmbeddedPlayer/album=3331732813/size=small/bgcol=ffffff/linkcol=0687f5/t=1/transparent=true/" seamless><a href="http://rvng.bandcamp.com/album/tactile-galactics-4">Tactile Galactics by Secret Circuit</a></iframe>

 

Where / how do i paste this?

Link to comment
Share on other sites

Yeah it's a bit of a pain but you're nearly there. The URL you'd paste here would be

 

http://bandcamp.com/EmbeddedPlayer/album=3331732813/size=medium/
(I got that number from the bit in your link that says src="......)

 

Which makes -

 

http://bandcamp.com/EmbeddedPlayer/album=3331732813/size=medium/

Link to comment
Share on other sites

Thanks MCBPete

 

It looks like I can only embed the album which defaults to the first track. What if I want to embed a certain track from the album? For example, I want to post Sync or Swim (track 4). Bandcamp gives album=3331732813 for that track too and when I paste the URL (obviously) I get just an embedded player for the first track of the album.

Link to comment
Share on other sites

Thanks MCBPete

 

It looks like I can only embed the album which defaults to the first track. What if I want to embed a certain track from the album? For example, I want to post Sync or Swim (track 4). Bandcamp gives album=3331732813 for that track too and when I paste the URL (obviously) I get just an embedded player for the first track of the album.

 

You need to add /t=n/ (where n - track number) to what you already have. My example

http://bandcamp.com/EmbeddedPlayer/album=2112615858/size=medium/t=3/

http://bandcamp.com/EmbeddedPlayer/album=2112615858/size=medium/t=3/

Link to comment
Share on other sites

  • 2 months later...
Guest deferlow

Test

<iframe style="border: 0; width: 100%; height: 142px;" src="https://bandcamp.com/EmbeddedPlayer/album=3595070575/size=large/bgcol=ffffff/linkcol=0687f5/tracklist=false/artwork=small/transparent=true/" seamless><a href="http://deferlow.bandcamp.com/album/mental-health-ep">Mental Health EP by Deferlow</a></iframe>
Link to comment
Share on other sites

  • 3 years later...

Yeah I think things got broken a while back, tried embedding something a few weeks ago but just got a blank square.

 

In the super big forum update I've got the feeling it'll be much easier to embed without my funky code workaround above

Link to comment
Share on other sites

Yeah I think things got broken a while back, tried embedding something a few weeks ago but just got a blank square.

 

In the super big forum update I've got the feeling it'll be much easier to embed without my funky code workaround above

I see. This never-ending forum update thing is taking on Duke Nukem forever proportions :emotawesomepm9: , just release the fucker already and tweak on the go.  

Link to comment
Share on other sites

I imagine with a forum database this huuuuuuuuuuuuuugggeeee Joyrex is just making 100% sure the whole thing is stable before making the switch to ensure the whole place doesn't come crashing down. Database upgrades/migrations are (well for an inexperienced person like me) like playing a game of jenga on top of a very high scaffolding with a strong breeze ...

Link to comment
Share on other sites

The thing slowing down the forum upgrade is unfortunately me - I have the dev environment set up, but there's a configuration error I haven't had time to sort out yet. I really want to get the forum upgraded so everyone can complain about how much better this version was, etc. :dadjoke:

 

I think Bandcamp might have changed their player; I'll see about fixing that today if possible.

Link to comment
Share on other sites

The thing slowing down the forum upgrade is unfortunately me - I have the dev environment set up, but there's a configuration error I haven't had time to sort out yet. I really want to get the forum upgraded so everyone can complain about how much better this version was, etc. :dadjoke:

lolinevitable 

Link to comment
Share on other sites

Okay, the long and the short of it is this:

 

Because Bandcamp does not expose the album/track ID (not the name) in the URL, there is no easy way to have a paste the URL into the forum and have it translate to an embedded player.

 

There is an addon that accomplishes this with a PHP script (and still requires you to copy the WordPress embed BBCode versus just a URL), and it's for this version of the forum - since we will be updating soon, the new forum uses oEmbed for stuff like this, but Bandcamp currently does not support the oEmbed standard. There's really no point installing an addon we'll only use for a short time and then it breaks again.

 

So, unless an enterprising PHP developer can write an addon for the new forum software (that accomplishes what the PHP script did for this version, but using the updated API for the new forum software), Bandcamp embeds will probably not work well.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.