Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Components
gb
gb.args
gb.cairo
gb.chart
gb.clipper
gb.complex
gb.compress
gb.crypt
gb.data
gb.db
gb.db.form
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.dbus
gb.dbus.trayicon
gb.debug
gb.desktop
gb.desktop.gnome.keyring
gb.desktop.x11
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.htmlview
gb.form.mdi
gb.form.print
gb.form.stock
gb.form.terminal
gb.gmp
gb.gsl
gb.gtk
gb.gtk.opengl
gb.gtk3
gb.gtk3.opengl
gb.gtk3.webview
gb.gui
gb.gui.opengl
gb.gui.qt
gb.gui.qt.ext
gb.gui.qt.opengl
gb.gui.qt.webkit
gb.gui.trayicon
gb.gui.webview
gb.hash
gb.highlight
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.inotify
gb.jit
gb.libxml
gb.logging
gb.map
gb.markdown
gb.media
.MediaContainer.Children
.MediaPlayer.Audio
.MediaPlayer.Balance
.MediaPlayer.Balance.Channel
.MediaPlayer.Subtitles
.MediaPlayer.Video
Media
MediaContainer
MediaControl
MediaFilter
MediaLink
MediaMessage
_get
_next
AsyncDone
AsyncStart
Buffering
ClockLost
Count
DurationChanged
Element
Eos
Error
Info
Key
Keys
Latency
Name
NewClock
Progress
Qos
RequestState
SegmentDone
Start
StateAsync
StateChanged
Status
StepDone
StepStart
StreamStart
StreamStatus
Tag
Toc
Type
Warning
MediaPipeline
MediaPlayer
MediaTagList
MediaType
gb.media.form
gb.memcached
gb.mime
gb.mongodb
gb.mysql
gb.ncurses
gb.net
gb.net.curl
gb.net.pop3
gb.net.smtp
gb.openal
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.opengl.sge
gb.openssl
gb.option
gb.pcre
gb.pdf
gb.poppler
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt4.webview
gb.qt5
gb.qt5.ext
gb.qt5.opengl
gb.qt5.webkit
gb.qt5.webview
gb.qt6
gb.qt6.ext
gb.qt6.opengl
gb.qt6.webview
gb.report
gb.report2
gb.scanner
gb.sdl
gb.sdl.sound
gb.sdl2
gb.sdl2.audio
gb.settings
gb.signal
gb.term
gb.test
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
gb.web.form
gb.web.gui
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
Language Index
Language Overviews
Last Changes
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual

MediaMessage (gb.media)

This class represents a GStreamer message received on a MediaPipeline bus.

You get them by handling the MediaPipeline Event event.

A message has a type, a name, and a collection of key / value pairs.

This class is not creatable.

This class acts like a read-only array.

This class is enumerable with the FOR EACH keyword.

Constants
AsyncDone   Constant for a message posted by control when they complete an asynchronous state change.
AsyncStart   Constant for a message posted by control when they start an asynchronous state change.
Buffering   Constant for a buffering message type.
ClockLost   Constant for a clock lost message type.
DurationChanged   Constant for a duration changed message type.
Element   Constant for an element-specific message.
Eos   Constant for end of stream message type.
Error   Constant for an error message type.
Info   Constant for an information message type.
Latency   Constant for a latency message type.
NewClock   Constant for a new clock message type.
Progress   Constant for a progress message type.
Qos   Constant for a quality of service message type.
RequestState   Constant for a request state message type.
SegmentDone   Constant for a segment done message type.
Start   Constant for a stream start message type.
StateAsync   A synonymous for the AsyncDone constant.
StateChanged   Constant for a state changed message.
Status   A synonymous for the StreamStatus constant.
StepDone   Constant for a step done message type.
StepStart   Constant for a step start message type.
StreamStart   Constant for a message indicating the start of a new stream.
StreamStatus   Constant for a stream status message type.
Tag   Constant for a tag message type.
Toc   Constant for a table of contents message type.
Warning   Constant for a warning message type.

Properties
Count   Return the number of key / values pair stored in the message.
Key   Return the key of last enumerated value stored in the message.
Keys   Return an array of the keys of all values stored in the message.
Name   Return the name of the message.
Type   Return the type of the event as a MediaMessage constant.