Package org.freedesktop.gstreamer.gst
Enum Class MessageType
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<MessageType>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum MessageType
extends Enum<MessageType>
implements Enumeration
The different message types that are available.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionmask for all of the above messages.message posted by the application, possibly via an application-specific element.Posted by elements when they complete an ASYNCGstStateChange
.Posted by elements when they start an ASYNCGstStateChange
.the pipeline is buffering.The current clock as selected by the pipeline became unusable.an element notifies its capability of providing a clock.Message indicating aGstDevice
was added to aGstDeviceProvider
(Since: 1.4)Message indicating aGstDevice
was changed aGstDeviceProvider
(Since: 1.16)Message indicating aGstDevice
was removed from aGstDeviceProvider
(Since: 1.4)The duration of a pipeline changed.element-specific message, see the specific element's documentationend-of-stream reached in a pipeline.an error occurred.Message is an extended message type (see below).Message indicating that an element created a context (Since: 1.2)an info message occurredMessage sent by elements to request the running time from the pipeline when an instant rate change should be applied (which may be in the past when the answer arrives).Posted by elements when their latency changes.Message indicating that an element wants a specific context (Since: 1.2)a new clock was selected in the pipeline.A progress message.Message indicating aGObject
property has changed (Since: 1.10)A buffer was dropped or an element changed its processing strategy for Quality of Service reasons.Message indicating to request the application to try to play the given URL(s).Posted by elements when they want the pipeline to change state.Message to request resetting the pipeline's running time from the pipeline.pipeline completed playback of a segment.pipeline started playback of a segment.a state change happenedan element changed state in a streaming thread.a stepping operation finished.A stepping operation was started.Message indicating a newGstStreamCollection
is available (Since: 1.10)Message indicating start of a new stream.status about a stream, emitted when it starts, stops, errors, etc..Message indicating the active selection ofGstStreams
has changed (Since: 1.10)the structure of the pipeline changed.a tag was found.A new table of contents (TOC) was found or previously found TOC was updated.an undefined messagea warning occurred. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get a printable name for the given message type.static Type
getType()
Get the GType of the MessageType classint
getValue()
Get the numeric value of this enumstatic MessageType
of
(int value) Create a new MessageType for the provided valuetoQuark()
Get the unique quark for the given message type.static MessageType
Returns the enum constant of this class with the specified name.static MessageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
an undefined message -
EOS
end-of-stream reached in a pipeline. The application will only receive this message in the PLAYING state and every time it sets a pipeline to PLAYING that is in the EOS state. The application can perform a flushing seek in the pipeline, which will undo the EOS state again. -
ERROR
an error occurred. When the application receives an error message it should stop playback of the pipeline and not assume that more data will be played. It is possible to specify a redirection url to the error messages by setting aredirect-location
field into the error message, application or high level bins might use the information as required. -
WARNING
a warning occurred. -
INFO
an info message occurred -
TAG
a tag was found. -
BUFFERING
the pipeline is buffering. When the application receives a buffering message in the PLAYING state for a non-live pipeline it must PAUSE the pipeline until the buffering completes, when the percentage field in the message is 100%. For live pipelines, no action must be performed and the buffering percentage can be used to inform the user about the progress. -
STATE_CHANGED
a state change happened -
STATE_DIRTY
an element changed state in a streaming thread. This message is deprecated. -
STEP_DONE
a stepping operation finished. -
CLOCK_PROVIDE
an element notifies its capability of providing a clock. This message is used internally and never forwarded to the application. -
CLOCK_LOST
The current clock as selected by the pipeline became unusable. The pipeline will select a new clock on the next PLAYING state change. The application should set the pipeline to PAUSED and back to PLAYING when this message is received. -
NEW_CLOCK
a new clock was selected in the pipeline. -
STRUCTURE_CHANGE
the structure of the pipeline changed. This message is used internally and never forwarded to the application. -
STREAM_STATUS
status about a stream, emitted when it starts, stops, errors, etc.. -
APPLICATION
message posted by the application, possibly via an application-specific element. -
ELEMENT
element-specific message, see the specific element's documentation -
SEGMENT_START
pipeline started playback of a segment. This message is used internally and never forwarded to the application. -
SEGMENT_DONE
pipeline completed playback of a segment. This message is forwarded to the application after all elements that postedGSTMESSAGESEGMENTSTART
posted a GST_MESSAGE_SEGMENT_DONE message. -
DURATION_CHANGED
The duration of a pipeline changed. The application can get the new duration with a duration query. -
LATENCY
Posted by elements when their latency changes. The application should recalculate and distribute a new latency. -
ASYNC_START
Posted by elements when they start an ASYNCGstStateChange
. This message is not forwarded to the application but is used internally. -
ASYNC_DONE
Posted by elements when they complete an ASYNCGstStateChange
. The application will only receive this message from the toplevel pipeline. -
REQUEST_STATE
Posted by elements when they want the pipeline to change state. This message is a suggestion to the application which can decide to perform the state change on (part of) the pipeline. -
STEP_START
A stepping operation was started. -
QOS
A buffer was dropped or an element changed its processing strategy for Quality of Service reasons. -
PROGRESS
A progress message. -
TOC
A new table of contents (TOC) was found or previously found TOC was updated. -
RESET_TIME
Message to request resetting the pipeline's running time from the pipeline. This is an internal message which applications will likely never receive. -
STREAM_START
Message indicating start of a new stream. Useful e.g. when using playbin in gapless playback mode, to get notified when the next title actually starts playing (which will be some time after the URI for the next title has been set). -
NEED_CONTEXT
Message indicating that an element wants a specific context (Since: 1.2) -
HAVE_CONTEXT
Message indicating that an element created a context (Since: 1.2) -
EXTENDED
Message is an extended message type (see below). These extended message IDs can't be used directly with mask-based API like gst_bus_poll() or gst_bus_timed_pop_filtered(), but you can still filter for GST_MESSAGE_EXTENDED and then check the result for the specific type. (Since: 1.4) -
DEVICE_ADDED
Message indicating aGstDevice
was added to aGstDeviceProvider
(Since: 1.4) -
DEVICE_REMOVED
Message indicating aGstDevice
was removed from aGstDeviceProvider
(Since: 1.4) -
PROPERTY_NOTIFY
Message indicating aGObject
property has changed (Since: 1.10) -
STREAM_COLLECTION
Message indicating a newGstStreamCollection
is available (Since: 1.10) -
STREAMS_SELECTED
Message indicating the active selection ofGstStreams
has changed (Since: 1.10) -
REDIRECT
Message indicating to request the application to try to play the given URL(s). Useful if for example a HTTP 302/303 response is received with a non-HTTP URL inside. (Since: 1.10) -
DEVICE_CHANGED
Message indicating aGstDevice
was changed aGstDeviceProvider
(Since: 1.16) -
INSTANT_RATE_REQUEST
Message sent by elements to request the running time from the pipeline when an instant rate change should be applied (which may be in the past when the answer arrives). (Since: 1.18) -
ANY
mask for all of the above messages.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new MessageType for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-
getName
Get a printable name for the given message type. Do not modify or free.- Returns:
- a reference to the static name of the message.
-
toQuark
Get the unique quark for the given message type.- Returns:
- the quark associated with the message type
-