Unix and Linux Discussions Tagged with he i |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
1,690 |
What is on Your Mind? |
|
|
|
8 |
1,993 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,892 |
IT Security RSS |
|
|
|
1 |
2,285 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,653 |
OS X Support RSS |
|
|
|
0 |
3,353 |
OS X Support RSS |
|
|
|
0 |
3,070 |
OS X Support RSS |
|
|
|
0 |
1,475 |
Complex Event Processing RSS News |
|
|
|
0 |
2,300 |
OS X Support RSS |
|
|
|
0 |
1,427 |
Complex Event Processing RSS News |
|
|
|
0 |
1,724 |
IT Security RSS |
|
|
|
0 |
3,398 |
UNIX and Linux RSS News |
|
|
|
8 |
4,465 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
5,510 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,331 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,772 |
Programming |
|
|
|
1 |
4,234 |
Programming |
|
|
|
1 |
4,151 |
Shell Programming and Scripting |
|
|
|
2 |
4,872 |
Shell Programming and Scripting |
|
|
|
2 |
2,845 |
UNIX for Advanced & Expert Users |
|
|
|
9 |
7,396 |
Programming |
|
|
|
1 |
4,722 |
Shell Programming and Scripting |
|
|
|
3 |
3,378 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
2,940 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,715 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,436 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
7,897 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
3,467 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,792 |
IP Networking |
|
|
|
7 |
4,699 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,520 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,837 |
Programming |
|
|
|
1 |
3,889 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,562 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,782 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,300 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,705 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,847 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
124,974 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,382 |
UNIX for Dummies Questions & Answers |
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)