1GStreamer::Event(3) User Contributed Perl Documentation GStreamer::Event(3)
2
3
4
6 GStreamer::Event
7
9 The various event types are represented as subclasses:
10
11 GStreamer::Event::FlushStart
12 GStreamer::Event::FlushStop
13 GStreamer::Event::EOS
14 GStreamer::Event::NewSegment
15 GStreamer::Event::Tag
16 GStreamer::Event::BufferSize
17 GStreamer::Event::QOS
18 GStreamer::Event::Seek
19 GStreamer::Event::Navigation
20 GStreamer::Event::Custom::UP
21 GStreamer::Event::Custom::DS
22 GStreamer::Event::Custom::DS::OOB
23 GStreamer::Event::Custom::Both
24 GStreamer::Event::Custom::Both::OOB
25
26 To create a new event, you call the constructor of the corresponding
27 class.
28
29 To check if an event is of a certain type, use the type method:
30
31 if ($event -> type eq "newsegment") {
32 # ...
33 }
34
35 elsif ($event -> type eq "eos") {
36 # ...
37 }
38
39 To get to the content of an event, call the corresponding accessor:
40
41 if ($event -> type eq "newsegment") {
42 my $update = $event -> update;
43 my $rate = $event -> rate;
44 my $format = $event -> format;
45 my $start_value = $event -> start_value;
46 my $stop_value = $event -> stop_value;
47 my $stream_time = $event -> stream_time;
48
49 # ...
50 }
51
52 elsif ($event -> type eq "tag") {
53 my $tag = $event -> tag;
54
55 # ...
56 }
57
59 structure = $event->get_structure
60
61 eventtype = $event->type
62
64 enum GStreamer::EventType
65
66 * 'unknown' / 'GST_EVENT_UNKNOWN'
67 * 'flush-start' / 'GST_EVENT_FLUSH_START'
68 * 'flush-stop' / 'GST_EVENT_FLUSH_STOP'
69 * 'eos' / 'GST_EVENT_EOS'
70 * 'newsegment' / 'GST_EVENT_NEWSEGMENT'
71 * 'tag' / 'GST_EVENT_TAG'
72 * 'buffersize' / 'GST_EVENT_BUFFERSIZE'
73 * 'qos' / 'GST_EVENT_QOS'
74 * 'seek' / 'GST_EVENT_SEEK'
75 * 'navigation' / 'GST_EVENT_NAVIGATION'
76 * 'custom-upstream' / 'GST_EVENT_CUSTOM_UPSTREAM'
77 * 'custom-downstream' / 'GST_EVENT_CUSTOM_DOWNSTREAM'
78 * 'custom-downstream-oob' / 'GST_EVENT_CUSTOM_DOWNSTREAM_OOB'
79 * 'custom-both' / 'GST_EVENT_CUSTOM_BOTH'
80 * 'custom-both-oob' / 'GST_EVENT_CUSTOM_BOTH_OOB'
81
83 GStreamer
84
86 Copyright (C) 2005-2006 by the gtk2-perl team.
87
88 This software is licensed under the LGPL. See GStreamer for a full
89 notice.
90
91
92
93perl v5.8.8 2007-02-20 GStreamer::Event(3)