FAQ  •  Register  •  Login

using 2 different versions of the player

<<

pixelchick

Posts: 4

Joined: Thu Jun 04, 2009 7:24 am

Post Thu Jun 04, 2009 7:28 am

using 2 different versions of the player

I love this player, well done.

My problem is I want to use the "button" player AND the "wide" player on the same wordpress site.
Right now the settings only allow one options, as far as I can tell.

Is there a way to have both options so I can have both players?
<<

pixelchick

Posts: 4

Joined: Thu Jun 04, 2009 7:24 am

Post Thu Jun 04, 2009 7:30 am

Re: using 2 different versions of the player

I don't know if this will work, but would there be a way to selecting which player you want to use for each playlist?


I have one player that I want to use to play a single (which the button is perfect for)
and one to play the whole album (which the wide version is perfect for)
<<

boriel

Site Admin

Posts: 1145

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Thu Jun 04, 2009 6:26 pm

Re: using 2 different versions of the player

You can use on the fly configurations. This is rather undocumented.
See http://www.boriel.com/wiki/en/index.php ... ly.29_mode

To change the mode on the fly use, for example:
  Code:
xspf_player::start('playlist', 'mode=1'); // Button mode

Remember that for post bodies you should use _start instead.
<<

pixelchick

Posts: 4

Joined: Thu Jun 04, 2009 7:24 am

Post Fri Jun 05, 2009 5:18 am

Re: using 2 different versions of the player

ok I got the button mode to work, I'm trying to get the 'wide' player to work, will you check my code?

  Code:
<xspf>_start('playlist', 'mode=3', FALSE, 'width=500&height=300');</xspf>
<<

pixelchick

Posts: 4

Joined: Thu Jun 04, 2009 7:24 am

Post Fri Jun 05, 2009 5:50 am

Re: using 2 different versions of the player

I forgot to add, all that shows up is this tiny square with that looks like the volume bars inside.
<<

boriel

Site Admin

Posts: 1145

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Fri Jun 05, 2009 7:04 am

Re: using 2 different versions of the player

pixelchick wrote:ok I got the button mode to work, I'm trying to get the 'wide' player to work, will you check my code?

  Code:
<xspf>_start('playlist', 'mode=3', FALSE, 'width=500&height=300');</xspf>

FALSE must only be used when no playlist specified. All the remaining parameteres go in a single string.
The right sentence is:
  Code:
<xspf>_start('playlist', 'mode=3&width=500&height=300');</xspf>

Return to XSPF Player Plugin (English)

Who is online

Users browsing this forum: No registered users and 0 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO