props: a new customizable XSPF player
|Reported by:||ntm||Owned by:||seek3r|
|Severity:||normal||Keywords:||podpress, XSPF player|
|Cc:||seek3r, azaozz, ntm|
There is a heavily modified XSPF player which has at least to big advantages:
- it is customizable via skin.xml files
- it can handle none-ASCII character resp. html entities
Since the only way to adjust the with of these player is via the new skin files I have written functions which are updating the skin files if the settings were changed. I have created default skin files with these functions.
These skin files are XML files and situated in a sub folder of podPress (e.g. /podpress/players/xspf_jukebox/dynamic/skin.xml) They should be named skin.xml and skin_slim.xml for the slim player. podPress overwrites these files to updated the width (and height) of the widget every time the widgets settings are saved. Later versions of podPress might have more customization options for the player.
But if the user wants to use own skin files then she/he can prevent the overwriting of the skin files by defining the constant PODPRESS_XSPF_PLAYER_USE_CUSTOM_SKINFILE (to do that uncomment the line at the beginning of the podpress.php file).
podPress will use a derivate of the SlimOriginal skin. It might be necessary to adjust the height for different skins. In that case it is possible to define further constants: PODPRESS_XSPF_PLAYER_HEIGHT and PODPRESS_XSPF_SLIM_PLAYER_HEIGHT.
(There are prepared lines in the podpress.php file which is in the patch, too.)
Furthermore the new player requires some few changes in the widget control function. This function has now a input field for the players width.