Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.47 KB

plugins.md

File metadata and controls

35 lines (25 loc) · 1.47 KB

Plugins

Plugin Use Cases

  • Display a vertical or horizontal pane with artist information, album information
  • Notify a remote API on events. For instance post to last.fm everytime you play a song.
  • Show a history of recently played artists and albums
  • Show a browser of years, artists and albums
  • When a playing an album and "idling", switch to a view which looks like a vinyl record album back cover w/ track. Guessing this can be automated by scraping album art from the iTunes API

class Plugin { .show(flags, size) .hide() .hideTrackTable() .showTrackTable() .http(request, on-response); // this will be unnecessary if XMLHTTPRequest is available .html() // set the HTML to this .nextTracks(num, offset) // get the next N tracks which will play. by default offset is zero. }

  • I have been unable to decide whether to use dom windows or naked interpreter instances

On the choice of Javascript running inside of a WebKit instance vs. Javascript running inside of CocoaJS/plain JavaScriptCore interpreter:

I've a hard time collecting parse errors/syntax errors to work.