Video::Xine::Event -- An event emitted by Xine
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!"; }
Provides methods for accessing events that Xine generates.
Exports all XINE_EVENT* constants in the tag ':type_constants'.
XINE_EVENT_UI_PLAYBACK_FINISHED
XINE_EVENT_UI_CHANNELS_CHANGED
XINE_EVENT_UI_SET_TITLE
XINE_EVENT_UI_MESSAGE
XINE_EVENT_FRAME_FORMAT_CHANGE
XINE_EVENT_AUDIO_LEVEL
XINE_EVENT_QUIT
XINE_EVENT_PROGRESS
XINE_EVENT_MRL_REFERENCE
XINE_EVENT_UI_NUM_BUTTONS
XINE_EVENT_SPU_BUTTON
XINE_EVENT_DROPPED_FRAMES
$event->get_type()
Returns an integer indicating the event's type, which will be one of the type constants.
To install Video::Xine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Video::Xine
CPAN shell
perl -MCPAN -e shell install Video::Xine
For more information on module installation, please visit the detailed CPAN module installation guide.