forked from chrippa/xmmsclient.js
-
Notifications
You must be signed in to change notification settings - Fork 0
dsheeler/xmmsclient.js
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is JavaScript client library for XMMS2 written using CoffeeScript. Must be used via a WebSocket proxy such as websockify for now. Compiling to JavaScript requires CoffeeScript to be installed and then running "cake build". Simple usage (CoffeeScript): client = new xmmsclient.Client "myclient" client.onconnect = -> alert "Connected!" client.playback.current_id().onvalue = (id) -> client.medialib.get_info(id).onvalue = (propdict) -> metadata = xmmsclient.PropDict.flatten(propdict) alert "Currently playing #{metadata.artist} - #{metadata.title}" client.ondisconnect = -> alert "Disconnected" client.connect "ws://localhost:9668" websockify: https://github.com/kanaka/websockify CoffeeScript: http://coffeescript.org/
About
Client library to interface with XMMS2 daemon over WebSockets.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published