Audio::Play::MPlayer - a frontend to play audio files using MPlayer
use Audio::Play::MPlayer; # same as Audio::Play::MPG123 $player = Audio::Play::MPlayer->new; $player->load( "ex-mp30.mp3" ); print $player->title, "\n"; $player->poll( 1 ) until $player->state == 0;
This module acts as a frontend to an external MPlayer process started with the -slave command-line option. The idea and interface (and in part the code) has been taken from Audio::Play::MPG123.
-slave
Please see Audio::Play::MPG123 for the documentation. Take into account that the methods:
copyrighted emphasis error_protected extension layer mode mode_extension stat statfreq type url IN
have not been implemented, and that:
jump tpf
work differently: jump takes offsets in seconds, and tpf always returns 1 to make it possible to write:
jump
tpf
1
$player->jump( 60 / $player->tpf );
Mattia Barbon <mbarbon@cpan.org> and Luke Poskitt <ltp@cpan.org>, using ideas from Audio::Play::MPG123 by Marc Lehmann <schmorp@schmorp.de>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The latest sources can be found on GitHub at http://github.com/mbarbon/audio-play-mplayer/tree
Marc Lehmann <schmorp@schmorp.de> for Audio::Play::MPG123.
The MP3 file used in tests has been taken from http://www.shellworld.net/~davidsky/exam-mp3.htm (test ID3 tag not in original).
To install Audio::Play::MPlayer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::Play::MPlayer
CPAN shell
perl -MCPAN -e shell install Audio::Play::MPlayer
For more information on module installation, please visit the detailed CPAN module installation guide.