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
MediaPipeline
_new
AboutToFinish
Buffering
Close
Duration
Duration
End
Event
Forward
Length
Message
Pause
Play
Pos
Position
Position
Progress
Progress
Seek
Speed
Start
Stop
Tag
MediaPlayer
MediaTagList
MediaType
gb.media.form
gb.memcached
gb.mime
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

MediaPipeline (gb.media)

This class implements a GStreamer "pipeline".

A pipeline is a special container that provides its children a global clock and a message bus. This is the base class for the MediaPlayer control that implements a fully functional media player.

This class inherits MediaContainer.

This class is creatable.

This class acts like a read / write array.

Properties
Duration   Return the duration of the processed data in seconds.
Length   A synonymous for Duration.
Pos   This is a synonymous for the Position property.
Position   Return or set the current position inside the processed data in seconds.
Progress   Return the buffering progress.
Speed   Return or set the media playing speed rate.

Inherited properties
Children   Return a virtual collection of all MediaContainer children.
Handle   Return the internal GStreamer handle associated with a MediaControl.
Inputs   Return the name of all inputs.
Name   Return or set the name of the MediaControl.
Outputs   Return the name of all outputs.
Parent   Return the parent of the control.
State   Return or define the state of the MediaControl.
Tag   Return or set the MediaControl tag.
Type   Return the type of the MediaControl.

Methods
Close   Close the pipeline, i.e. set its state and the state of all children to Null.
Forward   Move forward a specific number of frames.
Pause   Pause the pipeline, i.e. set its state and the state of all children to Paused.
Play   Start playing, i.e. set the state of the pipeline and all its children to Playing.
Seek   Move the stream to a specific position, following the constraints defined by the specified flags.
Stop   Stop the pipeline, i.e. set its state and the state of all its children to Ready.

Inherited methods
AddInput   Choose an input of a child control that will act as an input for the container.
AddOutput   Choose an output of a child control that will act as an output for the container.
GetLastImage   Return the last image displayed by a video output control.
GetLink   Return the description of an input or output from its name.
LinkLaterTo   Link the current control to the Target control as soon as a new output appears on it.
LinkTo   Link an output of the current MediaControl to the input of the Target MediaControl.
SetWindow   This methods tells the MediaControl to draw its output inside a specific GUI control.

Events
AboutToFinish   This event is raised when the current playing media is about to finish.
Buffering   This event is raised when the pipeline is buffering data.
Duration   Raised when the duration of a pipeline has changed.
End   Raised when the end of stream has been reached while playing.
Event   This event is raised when the Media object emits any internal event.
Message   Raised when a child control emits a message.
Position   This event is raised when the stream position changes.
Progress   This event is raised while the media is played, and until it is stopped.
Start   This event is raised when a new media starts playing.
Tag   Raised when some tags have been found.

Inherited events
State   This event is raised when the state of the control has changed.