Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  new toy to play with... playlist viewer in WPS (FS#10898)
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: new toy to play with... playlist viewer in WPS (FS#10898)  (Read 14677 times)

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
new toy to play with... playlist viewer in WPS (FS#10898)
« on: January 07, 2010, 02:56:36 AM »
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...
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #1 on: January 07, 2010, 12:52:10 PM »
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 :)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline ew

  • Member
  • *
  • Posts: 52
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #2 on: January 07, 2010, 01:21:49 PM »
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.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #3 on: January 07, 2010, 01:24:49 PM »
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.
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #4 on: January 07, 2010, 01:31:42 PM »
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?
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #5 on: January 07, 2010, 01:55:46 PM »
nope, I have no idea what you are trying to say :)
by the way, the end value isnt defined, it goes by the size of the viewport, so if there is enough for 3 lines, 3 lines will be displayed.

I originally wanted to be able to display something like:
4: previous
5: current <- the track that is currently playing
6: next
7: next+1

which is why the start offset is important (not everyone is going to want to see the previous and current track).

Also, from a codeing point of view, looking back to see if any tokens were used is bad.
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline ew

  • Member
  • *
  • Posts: 52
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #6 on: January 07, 2010, 02:48:39 PM »
Quote from: JdGordon on January 07, 2010, 01:24:49 PM
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.

I see your point about not reading time for all of the tracks in the playlist - perhaps it would be useful to display a total time for the tracks available in the buffer.  The playlist viewer does not display any times at all.

Anyway, thanks for all of your contributions in making Rockbox a great product.
Logged

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #7 on: January 07, 2010, 09:17:46 PM »
Quote from: ew on January 07, 2010, 02:48:39 PM
I see your point about not reading time for all of the tracks in the playlist - perhaps it would be useful to display a total time for the tracks available in the buffer. 
As much as I too wish there were a way to display a total time for all tracks in the buffer (don't worry!  I understand why it's a nodo) I do not see the value in displaying the total playtime left in the buffer.

I can not think for an honest use for this, outside the entertainment of watching the number go down and up, down and up.
;)
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #8 on: January 07, 2010, 11:05:25 PM »
oh yeah! I got a very limited parser/displayer working :D



Those top 3 lines are being drawn from the skin line "|%pp.%ia - %it|"
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline ew

  • Member
  • *
  • Posts: 52
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #9 on: January 08, 2010, 10:49:21 AM »
Quote from: soap on January 07, 2010, 09:17:46 PM
I can not think for an honest use for this, outside the entertainment of watching the number go down and up, down and up.
;)


Heaven forbid that we would think a feature be added to Rockbox just for entertainment.  ;D
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #10 on: January 10, 2010, 11:22:40 AM »
Could there be a way to implement this conditionally?
Like when Hold is on for instance?

I'm thinking from the viewpoint of limited screen size.
Just curious, no importence.


[St.]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #11 on: January 10, 2010, 01:22:14 PM »
of course. just put it in a conditional viewport.
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #12 on: January 12, 2010, 01:15:02 AM »
well bugger the lot of you.... I'm having fun implementing this wehether you want it or not! :D



I've come up with a clever way to make it extremely customisable (including partial scrolling) without making the code complex :D
Everything under "Up next:" in that screenshot is this playlist viewer. except there are 3 of them! One does the playlist number, one does the track title/filename (could be scrolling if you wanted but I tihnk that looks crap), and one does the track time (-- is because those tracks havnt been buffered yet).

I've attached my wps to give you an idea how it looks... 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.
* test.wps (0.27 kB - downloaded 246 times.)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Ste-

  • Member
  • *
  • Posts: 76
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #13 on: January 12, 2010, 02:28:17 AM »
Good work. I also like the look of this and cant wait to get started themeing with it.
Logged
Current Rocbox Devices: iAudio X5 240GB, Toshiba Gigabeat S240, iPod Classic 160GB, iPod Mini 2nd Gen 64GB, iRiver H360, Toshiba Gigabeat F40, iPod Video 30GB, Sansa e280v2, Sansa Fuzev2 8GB, Sansa Clip+ 8GB, Sansa Clip Zip 8GB, Sansa Fuze+ 4GB

Offline perfectdrug

  • Artist
  • Member
  • *
  • Posts: 103
Re: new toy to play with... playlist viewer in WPS (FS#10898)
« Reply #14 on: January 12, 2010, 07:39:38 AM »
I'm looking forward to try this out  :)
thanks
Logged
uʍop ǝpısdn < sbuıʇʇǝs pɔ1 < ʎɐ1dsıp < sbuıʇʇǝs 1ɐɹǝuǝb

  • Print
Pages: [1] 2 3
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  new toy to play with... playlist viewer in WPS (FS#10898)
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.16 seconds with 22 queries.