Video::PlaybackMachine::Player::EventWheel - Bridge between Player events and POE events
use Video::PlaybackMachine::Player::EventWheel; # Create an event wheel watching $stream my $wheel = Video::PlaybackMachine::Player::EventWheel->new($stream); # Clear out any previous events $wheel->clear_events(); # Call a handler when the stream stops $wheel->set_stop_handler(sub { print "All done!\n"}); # Start the session $wheel->spawn();
When spawned, will pass along events from the given streams to the appropriate callbacks.
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.