Component:Ruby bindings Other queries - nesciens/xmms2-wiki GitHub Wiki
Other queries
coll_get(name, [ns])
- ns - namespace. There is a predefined namespace Xmms::Collection::NS_PLAYLISTS for playlists.
(There should be some info about predefined namespace constants in Xmms::Collection description instead. Playlist-Collection relationship should be mentioned as well.)
current_pos
- res[:name] - playlist name a current song belongs to;
- res[:position] - position of a current song in the said playlist.
playback_volume_get
- res[:left] - left channel;
- res[:right] - right channel.
playback_volume_set(channel, volume)
- channel is a symbol. Either :left or :right;
- volume is an integer from 0 to 100.