Video::Xine::Event - An event emitted by Xine


Video-Xine documentation  | view source Contained in the Video-Xine distribution.

Index


NAME

Top

Video::Xine::Event -- An event emitted by Xine

SYNOPSIS

Top

  use Video::Xine;
  use Video::Xine::Event qw/:type_constants/;
  use Video::Xine::Event::Queue;

  # $stream is a Video::Xine::Stream
  # We get events from an event queue
  my $queue = Video::Xine::Event::Queue->new($stream);

  my $event = $queue->get_event();

  # Announce if we dropped frames
  if ( $event->get_type() == XINE_EVENT_DROPPED_FRAMES ) {
    print "Dropped frames!";
  }




DESCRIPTION

Top

Provides methods for accessing events that Xine generates.

EXPORTS

Top

Exports all XINE_EVENT* constants in the tag ':type_constants'.

TYPE CONSTANTS

METHODS

Top

get_type()

  $event->get_type()

Returns an integer indicating the event's type, which will be one of the type constants.


Video-Xine documentation  | view source Contained in the Video-Xine distribution.