Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Example panel

queue-panel.js is a queue panel for JScript Panel 3 (JSP3) 3.8.5+. It depends only on the bridge and standard JSP3 APIs - no external themes, shared modules, fonts, or colour libraries. Copy it into a JSP3 panel and it will work without modification.

It demonstrates the full bridge interface described in the reference:

  • View - lists the Up Next playlist (the queue), showing queue position, title, and artist for each row, and highlighting the currently playing track.
  • Clear - the Clear control in the header empties the queue.
  • Remove - hover over a row and click x to remove that track.
  • Reorder - drag a row to a new position.
  • Jump to point - click a row to start playback from that position and consume all preceding queued tracks (via the bridge's main-menu command).

If the bridge is not loaded (that is, the Up Next playlist cannot be found), the panel displays a simple "queue bridge not loaded" message rather than generating errors.

Use it

  1. Install the foo_atelier_queuebridge component (see Install).
  2. Restart foobar2000.
  3. Add a JScript Panel 3 panel to your layout.
  4. Open the panel configuration and paste in the contents of queue-panel.js.
  5. Apply the changes.

The panel now displays and controls the playback queue.

Customisation

The settings most users will want to change are grouped at the top:

  • PLAYLIST_NAME and the menu command path - these form part of the bridge contract and should only be changed if the component is modified to match.
  • Colour and font constants - customise these freely.

Everything below uses standard plman, fb, and gr APIs. If you are porting the panel to another scripting host (for example, Spider Monkey Panel), these are the only calls that need to change; the bridge contract remains the same.