This command provides access to the xmms media player to control playback, playlist, skins and equalizer functions. The optional ?-session n? can be used to specify a specific xmms player session, this defaults to session 0 and only makes sense when 'allow multiple instances' of the xmms player options has been set.
The legal command's are:
The callback procedure should be defined as 'proc MyCallback {args} body', the args list can be used with the 'array' command: 'array set MyArray $args' to obtain an array with the elements: session isrunning, isplaying, ispaused, title, file, duration, position and length (of the playlist). Change notification is session specific (and persists even when the specified session quits).
The callback can be unregistered by specifying ?-cancel?.