Gambas Documentation - /comp/gb.media/mediapipeline

# 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
Create a new MediaPipeline.
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 collection of all MediaContainer children.
Children
Return the duration of the processed data in seconds.
Duration
Return the name of all inputs.
Inputs
A synonymous for Duration.
Length
Return or set the name of the MediaControl.
Name
Return the name of all outputs.
Outputs
Return the parent of the control.
Parent
Return or set the current position inside the processed data in seconds.
Position
Return or define the state of the MediaControl.
State
Return or set the MediaControl tag.
Tag
Return the type of the MediaControl.
Type

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
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 Destination control as soon as a new output appears on it.
LinkLaterTo
Link an output of the current MediaControl to the input of the Destination 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
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 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
Event
Raised when a child control emits a message.
Message
This event is raised while the media is played, and until it is stopped.
Progress
This event is raised when the state of the control has changed.
State
Raised when some tags have been found.
Tag