Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gstreamer::event(3pm) [debian man page]

GStreamer::Event(3pm)					User Contributed Perl Documentation				     GStreamer::Event(3pm)

NAME
GStreamer::Event - Structure describing events that are passed up and down a pipeline DESCRIPTION
The various event types are represented as subclasses: GStreamer::Event::FlushStart GStreamer::Event::FlushStop GStreamer::Event::EOS GStreamer::Event::NewSegment GStreamer::Event::Tag GStreamer::Event::BufferSize GStreamer::Event::QOS GStreamer::Event::Seek GStreamer::Event::Navigation GStreamer::Event::Custom::UP GStreamer::Event::Custom::DS GStreamer::Event::Custom::DS::OOB GStreamer::Event::Custom::Both GStreamer::Event::Custom::Both::OOB To create a new event, you call the constructor of the corresponding class. To check if an event is of a certain type, use the type method: if ($event -> type eq "newsegment") { # ... } elsif ($event -> type eq "eos") { # ... } To get to the content of an event, call the corresponding accessor: if ($event -> type eq "newsegment") { my $update = $event -> update; my $rate = $event -> rate; my $format = $event -> format; my $start_value = $event -> start_value; my $stop_value = $event -> stop_value; my $stream_time = $event -> stream_time; # ... } elsif ($event -> type eq "tag") { my $tag = $event -> tag; # ... } METHODS
structure = $event->get_structure eventtype = $event->type ENUMS AND FLAGS
enum GStreamer::EventType o 'unknown' / 'GST_EVENT_UNKNOWN' o 'flush-start' / 'GST_EVENT_FLUSH_START' o 'flush-stop' / 'GST_EVENT_FLUSH_STOP' o 'eos' / 'GST_EVENT_EOS' o 'newsegment' / 'GST_EVENT_NEWSEGMENT' o 'tag' / 'GST_EVENT_TAG' o 'buffersize' / 'GST_EVENT_BUFFERSIZE' o 'sink-message' / 'GST_EVENT_SINK_MESSAGE' o 'qos' / 'GST_EVENT_QOS' o 'seek' / 'GST_EVENT_SEEK' o 'navigation' / 'GST_EVENT_NAVIGATION' o 'latency' / 'GST_EVENT_LATENCY' o 'step' / 'GST_EVENT_STEP' o 'custom-upstream' / 'GST_EVENT_CUSTOM_UPSTREAM' o 'custom-downstream' / 'GST_EVENT_CUSTOM_DOWNSTREAM' o 'custom-downstream-oob' / 'GST_EVENT_CUSTOM_DOWNSTREAM_OOB' o 'custom-both' / 'GST_EVENT_CUSTOM_BOTH' o 'custom-both-oob' / 'GST_EVENT_CUSTOM_BOTH_OOB' SEE ALSO
GStreamer COPYRIGHT
Copyright (C) 2005-2011 by the gtk2-perl team. This software is licensed under the LGPL. See GStreamer for a full notice. perl v5.14.2 2012-03-01 GStreamer::Event(3pm)

Check Out this Related Man Page

GStreamer::Bus(3pm)					User Contributed Perl Documentation				       GStreamer::Bus(3pm)

NAME
GStreamer::Bus - Asynchronous message bus subsystem HIERARCHY
Glib::Object +----GStreamer::Object +----GStreamer::Bus METHODS
bus = GStreamer::Bus->new $bus->add_signal_watch integer = $bus->add_watch ($func, $data=undef) o $func (scalar) o $data (scalar) $bus->set_flushing ($flushing) o $flushing (boolean) boolean = $bus->have_pending GstMessage or undef = $bus->peek GstMessage or undef = $bus->poll ($events, $timeout) o $events (GStreamer::MessageType) o $timeout (integer) GstMessage or undef = $bus->pop boolean = $bus->post ($message) o $message (GstMessage) $bus->remove_signal_watch SIGNALS
sync-message (GStreamer::Bus, GstMessage) message (GStreamer::Bus, GstMessage) ENUMS AND FLAGS
flags GStreamer::MessageType o 'unknown' / 'GST_MESSAGE_UNKNOWN' o 'eos' / 'GST_MESSAGE_EOS' o 'error' / 'GST_MESSAGE_ERROR' o 'warning' / 'GST_MESSAGE_WARNING' o 'info' / 'GST_MESSAGE_INFO' o 'tag' / 'GST_MESSAGE_TAG' o 'buffering' / 'GST_MESSAGE_BUFFERING' o 'state-changed' / 'GST_MESSAGE_STATE_CHANGED' o 'state-dirty' / 'GST_MESSAGE_STATE_DIRTY' o 'step-done' / 'GST_MESSAGE_STEP_DONE' o 'clock-provide' / 'GST_MESSAGE_CLOCK_PROVIDE' o 'clock-lost' / 'GST_MESSAGE_CLOCK_LOST' o 'new-clock' / 'GST_MESSAGE_NEW_CLOCK' o 'structure-change' / 'GST_MESSAGE_STRUCTURE_CHANGE' o 'stream-status' / 'GST_MESSAGE_STREAM_STATUS' o 'application' / 'GST_MESSAGE_APPLICATION' o 'element' / 'GST_MESSAGE_ELEMENT' o 'segment-start' / 'GST_MESSAGE_SEGMENT_START' o 'segment-done' / 'GST_MESSAGE_SEGMENT_DONE' o 'duration' / 'GST_MESSAGE_DURATION' o 'latency' / 'GST_MESSAGE_LATENCY' o 'async-start' / 'GST_MESSAGE_ASYNC_START' o 'async-done' / 'GST_MESSAGE_ASYNC_DONE' o 'request-state' / 'GST_MESSAGE_REQUEST_STATE' o 'step-start' / 'GST_MESSAGE_STEP_START' o 'qos' / 'GST_MESSAGE_QOS' o 'progress' / 'GST_MESSAGE_PROGRESS' o 'any' / 'GST_MESSAGE_ANY' SEE ALSO
GStreamer, Glib::Object, GStreamer::Object COPYRIGHT
Copyright (C) 2005-2011 by the gtk2-perl team. This software is licensed under the LGPL. See GStreamer for a full notice. perl v5.14.2 2012-03-01 GStreamer::Bus(3pm)
Man Page