public class Message extends MiniObject
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstMessage.html
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().
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.Types |
NativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>| Modifier and Type | Field and Description |
|---|---|
static String |
GTYPE_NAME |
| Modifier and Type | Method and Description |
|---|---|
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.
|
copy, getRefCount, isWritable, makeWritableclose, disown, dispose, equals, getPointer, getRawPointer, hashCode, invalidate, toStringpublic static final String GTYPE_NAME
public GstObject getSource()
public Structure getStructure()
public MessageType getType()
Copyright © 2021 gstreamer-java. All rights reserved.