Video::PlaybackMachine::Player - POE component to play movies
use Video::PlaybackMachine::Player; my $player = Video::PlaybackMachine::Player->new(); # Start the Player session $player->spawn(); # Then, in another session... $kernel->post('Player', 'play', sub { "Finished"; }, 0, 'mymovie.mp4'); # Is the movie still running? print "Playing\n" if $player->get_status() == PLAYER_STATUS_PLAY;
To install Video::PlaybackMachine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Video::PlaybackMachine
CPAN shell
perl -MCPAN -e shell install Video::PlaybackMachine
For more information on module installation, please visit the detailed CPAN module installation guide.