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.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
MediaPlayer
_new
AboutToFinish
Audio
AudioChanged
Balance
Buffering
ConnectionSpeed
Input
NextURL
ProgressiveDownload
Subtitles
SubtitlesChanged
URL
Video
VideoChanged
MediaTagList
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.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

MediaPlayer (gb.media)

This class implements a fully functional media player.

This class inherits MediaPipeline.

This class is creatable.

This class acts like a read / write array.

Properties
Audio   Return a virtual object used for managing the audio part of the media player.
Balance   Return a virtual object that allows to manipulate the video balances (brightness, hue, saturation...).
Buffering   Return or set if buffering is enabled.
ConnectionSpeed   Return or set the network connection speed in kbps.
Input   Return or set the source control.
NextURL   Return or set the URL of the next media that will be played just after the current one.
ProgressiveDownload   Return or set if progressive download buffering is enabled.
Subtitles   Return a virtual object used for managing subtitles.
URL   Return or set the URI of the currently played media stream.
Video   Return a virtual object used for managing the media player video stream.

Inherited properties
Children   Return a virtual collection of all MediaContainer children.
Duration   Return the duration of the processed data in seconds.
Handle  
Inputs   Return the name of all inputs.
Length   A synonymous for Duration.
Name   Return or set the name of the MediaControl.
Outputs   Return the name of all outputs.
Parent   Return the parent of the control.
Pos   This is a synonymous for the Position property.
Position   Return or set the current position inside the processed data in seconds.
Progress  
Speed   Return or set the media playing speed rate.
State   Return or define the state of the MediaControl.
Tag   Return or set the MediaControl tag.
Type   Return the type of the MediaControl.

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.
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.
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.
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.
SetWindow   This methods tells the MediaControl to draw its output inside a specific GUI control.
Stop   Stop the pipeline, i.e. set its state and the state of all its children to Ready.

Events
AudioChanged   This event is raised whenever the number or order of the audio streams has changed.
SubtitlesChanged   This event is raised whenever the number or order of the subtitles streams has changed.
VideoChanged   This event is raised whenever the number or order of the video streams has changed.

Inherited 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.
State   This event is raised when the state of the control has changed.
Tag   Raised when some tags have been found.