App::Pimpd::Commands - Package exporting usual commands
use App::Pimpd; use App::Pimpd::Commands; if( ... ) { next_track(); } else { previous_track(); }
App::Pimpd::Commands exports functions dealing with usual commands
Play the next track in the current playlist.
Play the previous track in the current playlist.
Clear the current playlist.
Remove all tracks but the currently playing in the current playlist.
Parameters: $seconds
Enable crossfading and set the duration of crossfade between songs. If seconds is omitted, or if seconds is zero, crossfading is disabled.
Toggle random mode on/off
Toggle repeat mode on/off
Toggle playback status
Parameters: $integer
Set/unset random mode. Non-zero sets random mode on, zero sets random mode off.
Set/unset repeat mode. Non-zero sets repeat mode on, zero sets repeat mode off.
Set playback status. Non-zero resumes playback, zero pauses. Called with zero arguments, functions just like toggle_pause().
App::Pimpd
Magnus Woldrich CPAN ID: WOLDRICH m@japh.se http://japh.se
Copyright (C) 2010, 2011 Magnus Woldrich. All right reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::Pimpd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Pimpd
CPAN shell
perl -MCPAN -e shell install App::Pimpd
For more information on module installation, please visit the detailed CPAN module installation guide.