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.webkit
gb.gui.trayicon
gb.gui.webview
gb.hash
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
ar
ca
cs
de
en
eo
es
fa
fr
hu
id
it
ja
ko
mk
nl
pl
pt
pt_BR
ru
sq
tr
vi
zh
zh_TW
MediaPlayer (gb.media)
This class implements a fully functional media player.
This class inherits
MediaPipeline
.
This class is
Create a new
MediaPlayer
.
creatable
.
This class acts like a
Return the value of a
MediaControl
property from its name.
read
/
Define the value of a
MediaControl
property from its name.
write
array.
Properties
Methods
Events
Return a virtual object used for managing the audio part of the media player.
Audio
Return a virtual object that allows to manipulate the video balances (brightness, hue, saturation...).
Balance
Return or set if buffering is enabled.
Buffering
Return a virtual collection of all
MediaContainer
children.
Children
Return or set the network connection speed in kbps.
ConnectionSpeed
Return the duration of the processed data in seconds.
Duration
Return or set the source control.
Input
Return the name of all inputs.
Inputs
A synonymous for
Duration
.
Length
Return or set the name of the
MediaControl
.
Name
Return or set the URL of the next media that will be played just after the current one.
NextURL
Return the name of all outputs.
Outputs
Return the parent of the control.
Parent
This is a synonymous for the
Position
property.
Pos
Return or set the current position inside the processed data in seconds.
Position
Return or set if progressive download buffering is enabled.
ProgressiveDownload
Return or set the media playing speed rate.
Speed
Return or define the state of the
MediaControl
.
State
Return a virtual object used for managing subtitles.
Subtitles
Return or set the
MediaControl
tag.
Tag
Return the type of the
MediaControl
.
Type
Return or set the URI of the currently played media stream.
URL
Return a virtual object used for managing the media player video stream.
Video
Choose an input of a child control that will act as an input for the container.
AddInput
Choose an output of a child control that will act as an output for the container.
AddOutput
Close the pipeline, i.e. set its state and the state of all children to
Null
.
Close
Move forward a specific number of frames.
Forward
Return the last image displayed by a video output control.
GetLastImage
Return the description of an input or output from its name.
GetLink
Link the current control to the
Target
control as soon as a new output appears on it.
LinkLaterTo
Link an output of the current
MediaControl
to the input of the
Target
MediaControl.
LinkTo
Pause the pipeline, i.e. set its state and the state of all children to
Paused
.
Pause
Start playing, i.e. set the state of the pipeline and all its children to
Playing
.
Play
Move the stream to a specific position, following the constraints defined by the specified flags.
Seek
This methods tells the
MediaControl
to draw its output inside a specific GUI control.
SetWindow
Stop the pipeline, i.e. set its state and the state of all its children to
Ready
.
Stop
This event is raised when the current playing media is about to finish.
AboutToFinish
This event is raised whenever the number or order of the audio streams has changed.
AudioChanged
This event is raised when the pipeline is buffering data.
Buffering
Raised when the duration of a pipeline has changed.
Duration
Raised when the end of stream has been reached while playing.
End
This event is raised when the Media object emits any internal event.
Event
Raised when a child control emits a message.
Message
This event is raised when the stream position changes.
Position
This event is raised while the media is played, and until it is stopped.
Progress
This event is raised when a new media starts playing.
Start
This event is raised when the state of the control has changed.
State
This event is raised whenever the number or order of the subtitles streams has changed.
SubtitlesChanged
Raised when some tags have been found.
Tag
This event is raised whenever the number or order of the video streams has changed.
VideoChanged