Support and General Use > Theming and Appearance Customization

new toy to play with... playlist viewer in WPS (FS#10898)

(1/9) > >>

JdGordon:
bertrik got this silly idea into my head today that it would be relativly simple to implement a playlist viewer for the WPS...
well it turns out it was :)


Thats a simple example as usual... the 4 lines are in a viewport which dumps many upcoming tracks as will fit (or are in the playlist).
The top three show the title and track length because they have been buffered already. The bottom one shows the filename because its not on the buffer yet.

My goal is to make it very customisable, so while its in development I need help figuring out the syntax for the wps token.

Right now you just add %Vp in a viewport and it will display in the whole viewport. I'm thinking something like the following would be good...
%Vp|<start offset>|<WPS code to display if ID3 is loaded>|<display if not loaded>
start offset is the first track to start the listing.. I want to allow this to be negative so you can see the previous tracks also, but that doesnt work yet, 0 would be the current track and 1 is the next track
I really want to make this flexible which means putting in a very simple skin parser for the text (limited to pretty much just %i* tokens and a few others)
Right now none of the lines scroll... if a skin parser is used we can probaly get scrolling happening, but maybe its not needed? a flag for scroll all or scroll none could be enough?
do we need to bother showing the current track differently? like with an icon or shading like the lists? I'm thinking not really...

anyway, have a play with the patch, or come up with ideas on what to add...

JdGordon:
nuts... Its looking very likely that without major work of som sort or another, I wont be able to aadd the full customisability I want.
so instead I'll just hard code two versions which you can chose from (suggestions welcome)

the first will be one line per track, like the screenshot but the time display aligned on the right and the title scrolling (if enabled)
the second will be 2 lines per track, the first being the artist (scrolling if enabled) or the directory if no id3 is avilable, the second line will be the title/filename

That should be enough to waste screen space :)

ew:
Since you invited ideas.... ;D

What about a line for totals (number of tracks, time)

It would also be nice if this (or something similar) could be available from the WPS context menu.  That way, it would be available even if one does not want to allocate space on the wps for the viewport for the playlist viewer.

Just my $.02 for what it is worth.

JdGordon:
the point of this is to add more info which isnt available in the standard WPS tokens. number of tracks is easily available, and total time isnt ever going to be (without reading every track in the playlist there is no way to know this, and thats a nodo)

you have the real playlist viewer available in the wps context menu which is much more useful than this.

BdN3504:
I'd suggest dropping the "start value" and just check if there's already a %X (X stands for Next in playlist info) tag used. Then only the end value has to be defined and the start value will always be either track 3 or track 2 (if no %X tag is used). Do you read me?

Navigation

[0] Message Index

[#] Next page

Go to full version