WordPress.org

Plugin Directory

podpress

Opened 4 years ago

Closed 4 years ago

#1089 closed enhancement (fixed)

props: a new customizable XSPF player

Reported by: ntm Owned by: seek3r
Priority: normal Severity: normal
Plugin: podpress Keywords: podpress, XSPF player
Cc: seek3r, azaozz, ntm

Description

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.

Attachments (4)

xspf_jukebox.swf (27.7 KB) - added by ntm 4 years ago.
this file should be place in the new folder /podpress/player/xspf_jukebox/. The files xspf_player.swf and xspf_player_slim.swf in the /podpress/players folder are obselete if the patch and this file is in place.
1089_new_xspf_player_with_skin_files.patch (41.5 KB) - added by ntm 4 years ago.
1089_new_xspf_player_with_skin_files_v2.patch (50.5 KB) - added by ntm 4 years ago.
1089_new_xspf_player_with_skin_files_v2.2.patch (52.8 KB) - added by ntm 4 years ago.
contains now a fix for the iTunes button link in the Feed Buttons widget

Download all attachments as: .zip

Change History (8)

ntm4 years ago

this file should be place in the new folder /podpress/player/xspf_jukebox/. The files xspf_player.swf and xspf_player_slim.swf in the /podpress/players folder are obselete if the patch and this file is in place.

comment:1 ntm4 years ago

This is the XSPF Jukebox 5.9.5.

comment:2 ntm4 years ago

The patch contains the changes from the patches of #1068 and #1085.

comment:3 ntm4 years ago

The changed files in 1089_new_xspf_player_with_skin_files_v2.patch are giving room for customization. Further I have rearranged the skin files a little bit: the slim skin has its own folder /podpress/players/xspf_jukebox/dynamic_skin/, now.
It is possible to use own variables.txt files with different parameters, see http://lacymorrow.com/projects/jukebox/xspfdoc.html.
In order to use such custom variables files uncomment the constants PODPRESS_XSPF_USE_CUSTOM_VARIABLES and/or PODPRESS_XSPF_SLIM_USE_CUSTOM_VARIABLES in the podpress.php file and edit the variables.txt file of the skin.

Furthermore the background color of the player-<object> is set with the constant PODPRESS_XSPF_BACKGROUND_COLOR (in the podpress.php).

I have also added some answers to the FAQ section of the readme file.

ntm4 years ago

contains now a fix for the iTunes button link in the Feed Buttons widget

comment:4 ntm4 years ago

  • Resolution set to fixed
  • Status changed from new to closed

8.8.5 beta 3 contains a further fix for a problem with the transmission of the playlist URL to the player.
Further enhancements of the Feed Buttons widget are also included in podPress 8.8.5 beta 3

Note: See TracTickets for help on using tickets.