DCOP::Amarok::Player - Perl extension to speak to an amaroK player object via system's DCOP.
use DCOP::Amarok::Player; $player = DCOP::Amarok::Player->new(); $player->playPause(); print $player->getRandom();
This module is a quick hack to get an interface between perl and Kde's DCOP, since Kde3.4's perl bindings are disabled. This suite talks to 'dcop'. DCOP::Amarok::Player talks directly to the player object of amaroK.
None by default.
Constructor. No arguments needed. If the program will be run remotely, the need for 'user => "myusername"' arises.
Returns the album name of currently playing song.
Returns the artist performing currently playing song.
Returns the title of currently playing song.
Returns the status of the Shuffle play mode.
Toggles the Shuffle play mode. Returns the new state.
Returns the volume level.
Returns the playing status of amaroK. 0: Stopped, 1: Paused, 2: Playing
Returns the track number of the song that is currently being played.
Returns in MM:SS the total playing time of the song that is currently being played.
Returns in MM:SS the elapsed time of the song that is currently being played.
Returns in seconds the total playing time of the song that is currently being played.
Returns in seconds the elapsed time of the song that is currently being played.
Fast forwards 5 seconds the song.
Rewinds 5 seconds the song.
Returns the lyrics of the song that is currently being played.
Juan C. Muller, <jcmuller@gmail.com>
Copyright 2005 by Juan C. Muller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install DCOP::Amarok::Player, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DCOP::Amarok::Player
CPAN shell
perl -MCPAN -e shell install DCOP::Amarok::Player
For more information on module installation, please visit the detailed CPAN module installation guide.