Hey,
I am wondering how I can change the bgcolor for 1pixelout without hard-coding it....
The 1pixelout player was appearing fine--but it starts minimized, and there was a blank white box behind it stretching the same 24x290 dimensions.

I ended up adding this to the swftools.module right before the player object is embedded:
$P['bgcolor'] = "#42424B";

But that isn't an ideal fix, because it will get lose with future updates...

It had been passing #FFFFFF as the param, and I don't know where it was getting that from...?

Thanks.
Patrick

Comments

Stuart Greenfield’s picture

I'm at an internet cafe, so don't have access to the code.

Off the top of my head, I thought all the 1PixelOut coloring features were on its setting page? If they're not I should add them, and maybe I can bring back the FlowPlayer 3 color chooser?

The other place to check is whether the bgcolor parameter is being set by the "master" background value - you can set that on the main SWF Tools settings page.

In either case, I'll double check if these answers aren't right!

Stuart Greenfield’s picture

Status: Active » Fixed

Double checked and it's on the setting page. There are text fields for each configurable element, and you use the format 0xRRGGBB. Tested locally and set the background to black with no trouble.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

seanreiser’s picture

Stuart, I'm having the same issue. Luckily, I've found the solution, it's a parameter name mismatch. SWFTools.module is looking for a parameter of bgcolor, you're calling it bg in 1pixelout.module on line 74. Switching that to bgcolor solves the problem.

seanreiser’s picture

Status: Closed (fixed) » Active

Stuart, I'm having the same issue. Luckily, I've found the solution, it's a parameter name mismatch. SWFTools.module is looking for a parameter of bgcolor, you're calling it bg in 1pixelout.module on line 74. Switching that to bgcolor solves the problem.

prbass’s picture

Status: Active » Fixed

In case anyone is still stuggling with this: the background colour for the collapsed 1pixelout player comes from the SWFtools embedding method settings at:

/admin/settings/swftools/embed

You will probably want to set the window mode to "transparent" if you are using the 1pixelout player so that the collapsed player doesn't mess up the look of any gradients / textures for the background.

Looking at the source code - it is only the "flashvars" that come from the 1pixelout configuration page - if you want to change anything else it comes from the embedding method.

<object id="swf12597631501" width="290" height="24" type="application/x-shockwave-flash" data="http://localhost/sites/all/modules/swftools/shared/1pixelout/player.swf">
<param name="swliveconnect" value="default"/>
<param name="play" value="true"/>
...
<param name="wmode" value="transparent"/>
<param name="bgcolor" value="#000000"/>
<param name="version" value="7"/>
<param name="allowfullscreen" value="true"/>
...
<param name="flashvars" value="playerID=12597631501&autostart=no&loop=no&bg=0xF2F2F2&soundFile=http://localhost/sites/default/files/blah.mp3"/>

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

yan’s picture

In case anyone is still stuggling with this: the background colour for the collapsed 1pixelout player comes from the SWFtools embedding method settings

Thanks for the hint! I had been searching for a while...