FS#10898 - playlist viewer WPS widget

Attached to Project: Rockbox
Opened by Jonathan Gordon (jdgordon) - Thursday, 07 January 2010, 07:25 GMT
Last edited by Jonathan Gordon (jdgordon) - Wednesday, 13 January 2010, 06:02 GMT
Task Type Patches
Category Themes
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


I dont know if this is going to ever make it into svn, but its going here incase I lose interest...

Attached is a screenshot and the diff... The idea of this patch is to allow the WPS to have a playlist viewer displayed. to do this simply add the token %Vp to any viewport and the entire viewport will be used for the list it will show the the next tracks untill there is no more room.

tracks which have already been buffered will be displayed as "playlist number: title time", tracks which havnt been buffered yet will show the filename.

I'm hoping to make the text that is displayed be customisable using the skin language (!), also, I wanted to make it so you can choose which track to start the viewer at, so you could display the previous track down, or the current track down... this crashes so its hardcoded to start at the next track.

lots of work to do on this still... if anyone wants to take over let me know!
This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Wednesday, 13 January 2010, 06:02 GMT
Reason for closing:  Accepted
Additional comments about closing:  in 24220.
Comment by Jonathan Gordon (jdgordon) - Friday, 08 January 2010, 05:38 GMT
update: this one shows that the text can be loaded from the skin... right now its hardcoded but its a nice demo
Comment by Jonathan Gordon (jdgordon) - Tuesday, 12 January 2010, 06:16 GMT
the skin language is now looking like:
%Vp|<offset>|<code to show if id3>|<show me otherwise>|
the offset is how far from the current track to start displaying. 0 is the current track, 1 is the next track, etc

The code in the next two parts is a very limited skin code. NO conditionals, and just about no tags are supported... the following list are supported:
<free text>
%pp - playlist position
%fn - file name
%fp - file path
%ia - artist
%it - track title
%pt - track length
%s - scroll the whole line

add suggestions for which other tags to add support for in the forum thread