Member
Member
hobbes   28-09-2009, 06:41
#1

I'm trying to change the custom colors for flvplayer in 1.2.6, but it's not being saved. I suspect there is a permission issue somewhere causing this, but I don't know where the color values are being saved. I can't find a database table for them, so I guess there's a file somewhere.

Does anyone know what file/directory should be writable to save the custom colors?

Cheers,

Administrator
Administrator
acrylian   28-09-2009, 08:30
#2

The colors are saved in the options table.

Member
Member
hobbes   28-09-2009, 12:38
#3

Thanks. I guess I didn't look hard enough.

It seems that the player is getting the values from the database, but the values are in the wrong format. They should be in [i]0x[/i]FFFFFF format, rather than [i]#[/i]FFFFFF format:

http://developer.longtailvideo.com/trac/wiki/Flashvars3#Thecolors

If I edit the database with the correct format, the player changes the colors fine, but not with the current format. I'm using 1.2.6 and player v3, by the way.

Also, I think there's a typo in "flvplayer.php" on line 151 that prevents the "frontcolor" loading:

so.addVariable("frontcolor","'.getOption('flv_player_frontkcolor').'");

Is that "k" an error in "'flv_player_frontkcolor'?

Thanks,
Richard

Administrator
Administrator
acrylian   28-09-2009, 13:16
#4

Thanks you are right actually, it is the wrong. Funny that no one ever noticed that since it must be there since, well, a long time.. Also thanks for the typo find. We will correct this in the nightly build. Note: The nightly and so the next 1.2.7 release will drop support for flv player v3.

Administrator
Administrator
acrylian   29-09-2009, 15:27
#5

Both issues will be fixed in tonight's nightly. The color hex format was actually alright, there were just some quotes gone missing.

Member
Member
hobbes   29-09-2009, 20:47
#6

Great.

Thanks for your work on zenphoto.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.