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
31 To create a new message, you call the constructor of the corresponding
32 class.
33
34 To check if a message is of a certain type, use the & operator on the
35 type method:
36
37 if ($message -> type & "error") {
38 # ...
39 }
40
41 elsif ($message -> type & "eos") {
42 # ...
43 }
44
45 To get to the content of a message, call the corresponding accessor:
46
47 if ($message -> type & "state-changed") {
48 my $old_state = $message -> old_state;
49 my $new_state = $message -> new_state;
50 my $pending = $message -> pending;
51
52 # ...
53 }
54
55 elsif ($message -> type & "segment-done") {
56 my $format = $message -> format;
57 my $position = $message -> position;
58
59 # ...
60 }
61
63 structure = $message->get_structure
64
65 messagetype = $message->type
66
68 flags GStreamer::MessageType
69
70 * 'unknown' / 'GST_MESSAGE_UNKNOWN'
71 * 'eos' / 'GST_MESSAGE_EOS'
72 * 'error' / 'GST_MESSAGE_ERROR'
73 * 'warning' / 'GST_MESSAGE_WARNING'
74 * 'info' / 'GST_MESSAGE_INFO'
75 * 'tag' / 'GST_MESSAGE_TAG'
76 * 'buffering' / 'GST_MESSAGE_BUFFERING'
77 * 'state-changed' / 'GST_MESSAGE_STATE_CHANGED'
78 * 'state-dirty' / 'GST_MESSAGE_STATE_DIRTY'
79 * 'step-done' / 'GST_MESSAGE_STEP_DONE'
80 * 'clock-provide' / 'GST_MESSAGE_CLOCK_PROVIDE'
81 * 'clock-lost' / 'GST_MESSAGE_CLOCK_LOST'
82 * 'new-clock' / 'GST_MESSAGE_NEW_CLOCK'
83 * 'structure-change' / 'GST_MESSAGE_STRUCTURE_CHANGE'
84 * 'stream-status' / 'GST_MESSAGE_STREAM_STATUS'
85 * 'application' / 'GST_MESSAGE_APPLICATION'
86 * 'element' / 'GST_MESSAGE_ELEMENT'
87 * 'segment-start' / 'GST_MESSAGE_SEGMENT_START'
88 * 'segment-done' / 'GST_MESSAGE_SEGMENT_DONE'
89 * 'duration' / 'GST_MESSAGE_DURATION'
90 * 'any' / 'GST_MESSAGE_ANY'
91
93 GStreamer
94
96 Copyright (C) 2005-2006 by the gtk2-perl team.
97
98 This software is licensed under the LGPL. See GStreamer for a full
99 notice.
100
101
102
103perl v5.8.8 2007-02-20 GStreamer::Message(3)