CBCradio
Autoplay = False, Happy Bloggers = True

Autoplay = False, Happy Bloggers = True

Posted by Phil Rabin on Aug 14, 2007
We have great news for anyone wishing to spread their love of Indie Canadian music on their own blogs, myspace, but don't want to make their users feel like they're attending Indie Rock Jesus Camp.

Due to user complaints popular demand, the CBC Radio 3 web team has added the "autoplay" parameter to the embeddable R3 player, which in English means that you can set the player so that it won't start automatically when people arrive on your website.

Here's how to do it...

When you click on the embed link in the player, you will get a block of code. It looks pretty much exactly as it did before, save a new line which reads; &autoplay=true - this is the bit that tells the player to start playing as soon as a visitor arrives. If you change it to read; &autoplay=false, the player will load in the paused position.

So all you need to do is change "true" to "false" in the two places it occurs.

For example, take a look at the code for my personal playlist below:



Easy no? Happy html hacking!

Phil Rabin
CBC Radio 3 Web Team

Comments

4 comments
[Comments are now closed for this post]
NEWEST COMMENTS  |  UPDATE COMMENTS
  1. Putzy
    01

    Props

    This makes me smile--it was bugging me every time I went to myspace. Now, if I could only figure out why it won't show up on my stoopid Facebook...HI PHIL! I miss you!
  2. michael.tyas
    02

    thanks, and btw

    Thanks for fixing the autoplay. Now one more request. I would like my player to load randomized so that my low IQ viewers will get some fresh sound every time they click play.
  3. riversaredamp
    03

    Thanks...but what about radio mode?

    This is great, but can the autoplay be turned off if I want to leave the player in radio mode? For the life of me, I can't figure out how to do that.
  4. Phil Rabin
    04

    re: Thanks...but what about radio mode?

    If you want to leave the player in radio mode (no playlist) on your site/blog/myspace all you do is take out the part that says <permalink=/play/User-Name> both places where you see it. The autoplay=true or false parameter in both the radio and playlist modes will control whether the player starts automatically when the page loads. Hope this answered your question.
4 comments
OLDEST COMMENTS  |  UPDATE COMMENTS