The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.