1GStreamer::Message(3) User Contributed Perl DocumentationGStreamer::Message(3)
2
3
4
6 GStreamer::Message
7
9 The various nmessage types are represented as subclasses:
10
11 GStreamer::Message::EOS
12 GStreamer::Message::Error
13 GStreamer::Message::Warning
14 GStreamer::Message::Info
15 GStreamer::Message::Tag
16 GStreamer::Message::Buffering
17 GStreamer::Message::StateChanged
18 GStreamer::Message::StateDirty
19 GStreamer::Message::StepDone
20 GStreamer::Message::ClockProvide
21 GStreamer::Message::ClockLost
22 GStreamer::Message::NewClock
23 GStreamer::Message::StructureChange
24 GStreamer::Message::StreamStatus
25 GStreamer::Message::Application
26 GStreamer::Message::Element
27 GStreamer::Message::SegmentStart
28 GStreamer::Message::SegmentDone
29 GStreamer::Message::Duration
30 GStreamer::Message::Latency [0.10.12]
31 GStreamer::Message::AsyncStart [0.10.13]
32 GStreamer::Message::AsyncDone [0.10.13]
33
34 To create a new message, you call the constructor of the corresponding
35 class.
36
37 To check if a message is of a certain type, use the & operator on the
38 type method:
39
40 if ($message -> type & "error") {
41 # ...
42 }
43
44 elsif ($message -> type & "eos") {
45 # ...
46 }
47
48 To get to the content of a message, call the corresponding accessor:
49
50 if ($message -> type & "state-changed") {
51 my $old_state = $message -> old_state;
52 my $new_state = $message -> new_state;
53 my $pending = $message -> pending;
54
55 # ...
56 }
57
58 elsif ($message -> type & "segment-done") {
59 my $format = $message -> format;
60 my $position = $message -> position;
61
62 # ...
63 }
64
66 object = $message->src
67 structure = $message->get_structure
68 64 bit unsigned = $message->timestamp
69 messagetype = $message->type
71 flags GStreamer::MessageType
72 · 'unknown' / 'GST_MESSAGE_UNKNOWN'
73
74 · 'eos' / 'GST_MESSAGE_EOS'
75
76 · 'error' / 'GST_MESSAGE_ERROR'
77
78 · 'warning' / 'GST_MESSAGE_WARNING'
79
80 · 'info' / 'GST_MESSAGE_INFO'
81
82 · 'tag' / 'GST_MESSAGE_TAG'
83
84 · 'buffering' / 'GST_MESSAGE_BUFFERING'
85
86 · 'state-changed' / 'GST_MESSAGE_STATE_CHANGED'
87
88 · 'state-dirty' / 'GST_MESSAGE_STATE_DIRTY'
89
90 · 'step-done' / 'GST_MESSAGE_STEP_DONE'
91
92 · 'clock-provide' / 'GST_MESSAGE_CLOCK_PROVIDE'
93
94 · 'clock-lost' / 'GST_MESSAGE_CLOCK_LOST'
95
96 · 'new-clock' / 'GST_MESSAGE_NEW_CLOCK'
97
98 · 'structure-change' / 'GST_MESSAGE_STRUCTURE_CHANGE'
99
100 · 'stream-status' / 'GST_MESSAGE_STREAM_STATUS'
101
102 · 'application' / 'GST_MESSAGE_APPLICATION'
103
104 · 'element' / 'GST_MESSAGE_ELEMENT'
105
106 · 'segment-start' / 'GST_MESSAGE_SEGMENT_START'
107
108 · 'segment-done' / 'GST_MESSAGE_SEGMENT_DONE'
109
110 · 'duration' / 'GST_MESSAGE_DURATION'
111
112 · 'latency' / 'GST_MESSAGE_LATENCY'
113
114 · 'async-start' / 'GST_MESSAGE_ASYNC_START'
115
116 · 'async-done' / 'GST_MESSAGE_ASYNC_DONE'
117
118 · 'request-state' / 'GST_MESSAGE_REQUEST_STATE'
119
120 · 'step-start' / 'GST_MESSAGE_STEP_START'
121
122 · 'qos' / 'GST_MESSAGE_QOS'
123
124 · 'progress' / 'GST_MESSAGE_PROGRESS'
125
126 · 'any' / 'GST_MESSAGE_ANY'
127
129 GStreamer
130
132 Copyright (C) 2005-2014 by the gtk2-perl team.
133
134 This software is licensed under the LGPL. See GStreamer for a full
135 notice.
136
137
138
139perl v5.30.0 2019-09-19 GStreamer::Message(3)