NAME

Video::PlaybackMachine::Player::EventWheel - Bridge between Player events and POE events

SYNOPSIS

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();

DESCRIPTION

When spawned, will pass along events from the given streams to the appropriate callbacks.