|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.MiniObject
org.gstreamer.Message
public class Message
Lightweight objects to signal the occurrence of pipeline events.
Messages are implemented as a subclass of MiniObject
with a generic
Structure
as the content. This allows for writing custom messages without
requiring an API change while allowing a wide range of different types
of messages.
Messages are posted by objects in the pipeline and are passed to the
application using the Bus
.
The basic use pattern of posting a message on a Bus is as follows:
bus.post(new EOSMessage(source));
Element
usually posts messages on the bus provided by the parent
container using postMessage()
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject |
---|
NativeObject.Initializer |
Field Summary | |
---|---|
protected GstMessageAPI.MessageStruct |
messageStruct
|
Fields inherited from class org.gstreamer.lowlevel.NativeObject |
---|
defaultInit, LIFECYCLE, ownsHandle |
Constructor Summary | |
---|---|
Message(NativeObject.Initializer init)
Creates a new instance of Message. |
Method Summary | |
---|---|
Message |
copy()
Creates a copy of the message. |
GstObject |
getSource()
Gets the Element that posted this message. |
Structure |
getStructure()
Gets the structure containing the data in this message. |
MessageType |
getType()
Gets the type of this message. |
Message |
makeWritable()
Gets a writable version of this Message. |
Methods inherited from class org.gstreamer.MiniObject |
---|
disposeNativeHandle, isWritable, makeWritable, objectFor, ref, unref |
Methods inherited from class org.gstreamer.lowlevel.NativeObject |
---|
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, toString |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected GstMessageAPI.MessageStruct messageStruct
Constructor Detail |
---|
public Message(NativeObject.Initializer init)
init
- internal initialization data.Method Detail |
---|
public GstObject getSource()
public Structure getStructure()
public MessageType getType()
public Message makeWritable()
public Message copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |