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 eventtype = $event->type
62 enum GStreamer::EventType
63 · 'unknown' / 'GST_EVENT_UNKNOWN'
64
65 · 'flush-start' / 'GST_EVENT_FLUSH_START'
66
67 · 'flush-stop' / 'GST_EVENT_FLUSH_STOP'
68
69 · 'eos' / 'GST_EVENT_EOS'
70
71 · 'newsegment' / 'GST_EVENT_NEWSEGMENT'
72
73 · 'tag' / 'GST_EVENT_TAG'
74
75 · 'buffersize' / 'GST_EVENT_BUFFERSIZE'
76
77 · 'sink-message' / 'GST_EVENT_SINK_MESSAGE'
78
79 · 'qos' / 'GST_EVENT_QOS'
80
81 · 'seek' / 'GST_EVENT_SEEK'
82
83 · 'navigation' / 'GST_EVENT_NAVIGATION'
84
85 · 'latency' / 'GST_EVENT_LATENCY'
86
87 · 'step' / 'GST_EVENT_STEP'
88
89 · 'custom-upstream' / 'GST_EVENT_CUSTOM_UPSTREAM'
90
91 · 'custom-downstream' / 'GST_EVENT_CUSTOM_DOWNSTREAM'
92
93 · 'custom-downstream-oob' / 'GST_EVENT_CUSTOM_DOWNSTREAM_OOB'
94
95 · 'custom-both' / 'GST_EVENT_CUSTOM_BOTH'
96
97 · 'custom-both-oob' / 'GST_EVENT_CUSTOM_BOTH_OOB'
98
100 GStreamer
101
103 Copyright (C) 2005-2014 by the gtk2-perl team.
104
105 This software is licensed under the LGPL. See GStreamer for a full
106 notice.
107
108
109
110perl v5.30.0 2019-09-19 GStreamer::Event(3)