Modifier and Type | Class and Description |
---|---|
class |
Bin
Base class and element that can contain other elements.
|
class |
Buffer
Data-passing buffer type, supporting sub-buffers.
|
class |
Bus
|
class |
Caps
Structure describing sets of media formats
|
class |
Clock
Abstract class for global clocks.
|
class |
ClockID
A datatype to hold the handle to an outstanding sync or async clock callback.
|
class |
DateTime |
class |
Element
Abstract base class for all pipeline elements.
|
class |
ElementFactory
ElementFactory is used to create instances of elements.
|
class |
Event
Base type of all events.
|
class |
GhostPad
Pseudo link pads.
|
class |
GObject
This is an abstract class providing some GObject-like facilities in a common
base class.
|
class |
GstObject
Base class for the GStreamer object hierarchy
GstObject provides a root for the object hierarchy tree filed in by the
GStreamer library.
|
class |
Message
Lightweight objects to signal the occurrence of pipeline events.
|
class |
MiniObject
Lightweight base class for the GStreamer object hierarchy
MiniObject is a baseclass like
GObject , but has been stripped down of
features to be fast and small. |
class |
Pad
Object contained by elements that allows links to other elements.
|
class |
PadTemplate
Padtemplates describe the possible media types a
Pad or an
ElementFactory can handle. |
class |
Pipeline
A
Pipeline is a special Bin used as the toplevel container for
the filter graph. |
class |
Plugin
Container for features loaded from a shared object module
|
class |
PluginFeature
Base class for contents of a
Plugin
This is a base class for anything that can be added to a Plugin. |
class |
Query
Base query type
|
class |
Registry
Abstract base class for management of
Plugin objects. |
class |
StreamInfo
Object containing specific meta information such as width/height/framerate of
video streams or samplerate/number of channels of audio.
|
class |
Structure
Generic structure containing fields of names and values.
|
class |
TagList
List of tags and values used to describe media metadata.
|
Modifier and Type | Class and Description |
---|---|
class |
Controller
The controller subsystem offers a lightweight way to adjust gobject properties over stream-time.
|
class |
ControlSource
The ControlSource is a base class for control value sources that could be used by Controller to get timestamp-value pairs.
|
class |
InterpolationControlSource
The ControlSource is a base class for control value sources that could be used by Controller to get timestamp-value pairs.
|
class |
LFOControlSource
The ControlSource is a base class for control value sources that could be used by Controller to get timestamp-value pairs.
|
Modifier and Type | Class and Description |
---|---|
class |
AppSink
A sink
Element that enables an application to pull data
from a pipeline. |
class |
AppSrc
Enables an application to feed buffers into a pipeline.
|
class |
BaseSink |
class |
BaseSrc |
class |
BaseTransform |
class |
BufferDataAppSink
Class that allows to pull out native buffers from the GStreamer pipeline into
the application.
|
class |
BufferDataSink
Class that allows to pull out native buffers from the GStreamer pipeline into
the application.
|
class |
ByteDataAppSink
Class that allows to pull out buffers from the GStreamer pipeline into
the application, using an appsink.
|
class |
ByteDataSink
Class that allows to pull out buffers from the GStreamer pipeline into
the application, using an appsink.
|
class |
CustomSink |
class |
CustomSrc |
class |
DecodeBin
Deprecated.
This element is deprecated and no longer supported. You should use the uridecodebin or decodebin2 element instead (or, even better: playbin2).
|
class |
DecodeBin2
Utility
Element to automatically identify media stream types and hook
up elements. |
class |
FakeSink |
class |
FakeSrc |
class |
FileSink
A gstreamer element that write to a file.
|
class |
FileSrc
A gstreamer element that reads from a file.
|
class |
Identity |
class |
InputSelector |
class |
MultiQueue
A gstreamer element for Multiple data queue.
|
class |
PlayBin
Deprecated.
This element is deprecated and no longer supported. You should use the PlayBin2 element instead.
Playbin provides a stand-alone everything-in-one abstraction for an audio
and/or video player.
It can handle both audio and video files and features
Usage
A playbin element can be created just like any other element using
The file/URI to play should be set via
Playbin is a
Playback can be initiated by setting the PlayBin to PLAYING state using
When playback has finished (an EOS message has been received on the bus) or an error has occured (an ERROR message has been received on the bus) or the user wants to play a different track, playbin should be set back to READY or NULL state, then the input file/URI should be set to the new location and then playbin be set to PLAYING state again.
Seeking can be done using
Applications may query the current position and duration of the stream
via Advanced Usage: specifying the audio and video sink
By default, if no audio sink or video sink has been specified via
If the application wants more control over how audio or video should be
output, it may create the audio/video sink elements itself (for example
using GNOME-based applications, for example, will usually want to create gconfaudiosink and gconfvideosink elements and make playbin use those, so that output happens to whatever the user has configured in the GNOME Multimedia System Selector confinguration dialog.
The sink elements do not necessarily need to be ready-made sinks. It is
possible to create container elements that look like a sink to playbin,
but in reality contain a number of custom elements linked together. This
can be achieved by creating a It is also possible to 'suppress' audio and/or video output by using 'fakesink' elements (or capture it from there using the fakesink element's "handoff" signal, which, nota bene, is fired from the streaming thread!). Retrieving Tags and Other Meta DataMost of the common meta data (artist, title, etc.) can be retrieved by watching for TAG messages on the pipeline's bus (see above). Other more specific meta information like width/height/framerate of video streams or samplerate/number of channels of audio streams can be obtained using the "stream-info" property, which will return a GList of stream info objects, one for each stream. These are opaque objects that can only be accessed via the standard GObject property interface, ie. g_object_get(). Each stream info object has the following properties:
Stream information from the stream-info properties is best queried once playbin has changed into PAUSED or PLAYING state (which can be detected via a state-changed message on the bus where old_state=READY and new_state=PAUSED), since before that the list might not be complete yet or not contain all available information (like language-codes). > BufferingPlaybin handles buffering automatically for the most part, but applications need to handle parts of the buffering process as well. Whenever playbin is buffering, it will post BUFFERING messages on the bus with a percentage value that shows the progress of the buffering process. Applications need to set playbin to PLAYING or PAUSED state in response to these messages. They may also want to convey the buffering progress to the user in some way. Here is how to extract the percentage information from the message (requires GStreamer >= 0.10.11):
PlayBin playbin = new PlayBin("player"); playbin.getBus().connect(new Bus.BUFFERING() { public void bufferingMessage(GstObject element, int percent) { System.out.printf("Buffering (%u percent done)\n", percent); } }Note that applications should keep/set the pipeline in the PAUSED state when a BUFFERING message is received with a buffer percent value < 100 and set the pipeline back to PLAYING state when a BUFFERING message with a value of 100 percent is received (if PLAYING is the desired state, that is). > Embedding the video window in your applicationBy default, playbin (or rather the video sinks used) will create their own window. Applications will usually want to force output to a window of their own, however. This can be done using the GstXOverlay interface, which most video sinks implement. See the documentation there for more details. Specifying which CD/DVD device to useThe device to use for CDs/DVDs needs to be set on the source element playbin creates before it is opened. The only way to do this at the moment is to connect to playbin's "notify::source" signal, which will be emitted by playbin when it has created the source element for a particular URI. In the signal callback you can check if the source element has a "device" property and set it appropriately. In future ways might be added to specify the device as part of the URI, but at the time of writing this is not possible yet. ExamplesHere is a simple pipeline to play back a video or audio file:
This will play back the given AVI video file, given that the video and audio decoders required to decode the content are installed. Since no special audio sink or video sink is supplied (not possible via gst-launch), playbin will try to find a suitable audio and video sink automatically using the autoaudiosink and autovideosink elements. Here is a another pipeline to play track 4 of an audio CD:
This will play back track 4 on an audio CD in your disc drive (assuming the drive is detected automatically by the plugin).
Here is a another pipeline to play title 1 of a DVD:
|
class |
PlayBin2 |
class |
Queue
A gstreamer element for data queue.
|
class |
Queue2
A gstreamer element for data queue.
|
class |
RGBDataAppSink
Class that allows to pull out buffers from the GStreamer pipeline into
the application.
|
class |
RGBDataFileSink
This bin encapsulates a pipeline that allows to encode RGB buffers into a video
file.
|
class |
RGBDataSink
Class that allows to pull out buffers from the GStreamer pipeline into
the application.
|
class |
Tee
A gstreamer element for data queue.
|
class |
TypeFind
Utility
Element to identify media types in the stream. |
Modifier and Type | Class and Description |
---|---|
class |
RTPBin
Java representation of gstreamer gstrtpbin
|
class |
RTSPSrc
Java representation of gstreamer rtspsrc
|
Modifier and Type | Class and Description |
---|---|
class |
BufferSizeEvent
Notification of new latency adjustment.
|
class |
EOSEvent
End-Of-Stream.
|
class |
FlushStartEvent
Start a flush operation.
|
class |
FlushStopEvent
Stop a flush operation.
|
class |
LatencyEvent
Notification of new latency adjustment.
|
class |
NavigationEvent
Navigation events are usually used for communicating user requests, such as
mouse or keyboard movements, to upstream elements.
|
class |
NewSegmentEvent
The newsegment event marks the range of buffers to be processed.
|
class |
QOSEvent
A quality message.
|
class |
SeekEvent
A request for a new playback position and rate.
|
class |
StepEvent
StepEvent.
|
class |
TagEvent
A new set of metadata tags has been found in the stream.
|
Modifier and Type | Class and Description |
---|---|
class |
GDate |
Modifier and Type | Class and Description |
---|---|
class |
ColorBalance |
class |
ColorBalanceChannel |
class |
GstInterface
Base type for all gstreamer interface proxies
|
class |
Mixer
Interface for elements that provide mixer operations
|
class |
MixerTrack |
class |
Navigation |
class |
Property |
class |
PropertyProbe
Interface for elements that provide mixer operations
|
class |
Tuner
Interface for elements providing tuner operations
|
class |
TunerChannel |
class |
TunerNorm |
class |
VideoOrientation |
class |
XOverlay
Interface for elements providing tuner operations
|
Modifier and Type | Class and Description |
---|---|
class |
InputStreamSrc |
class |
OutputStreamSink |
class |
ReadableByteChannelSrc |
class |
WriteableByteChannelSink |
Modifier and Type | Class and Description |
---|---|
class |
GMainContext |
class |
GSource |
class |
Handle |
class |
MainLoop
The GLib main loop.
|
class |
NativeObject |
class |
RefCountedObject
A
NativeObject that has an associated reference count |
Modifier and Type | Class and Description |
---|---|
class |
BufferingMessage
This message can be posted by an element that
needs to buffer data before it can continue processing.
|
class |
DurationMessage
The duration of a pipeline has changed.
|
class |
EOSMessage
This message is generated and posted in the sink elements of a
Bin . |
class |
ErrorMessage
This message is posted by element when a fatal event occurs.
|
class |
GErrorMessage
Base class for ERROR, WARNING and INFO messages.
|
class |
InfoMessage
This message is posted by element to provide information to the application.
|
class |
LatencyMessage
Message posted by elements when their latency requirements have changed.
|
class |
SegmentDoneMessage
This message is posted by elements that finish playback of a segment as a
result of a segment seek.
|
class |
StateChangedMessage
A state change message.
|
class |
TagMessage
This message is posted by elements that have discovered new tags.
|
class |
WarningMessage
This message is posted by element when a warning notice is required.
|
Modifier and Type | Class and Description |
---|---|
class |
ApplicationQuery
A Custom application query.
|
class |
ConvertQuery
Convert values between formats
|
class |
DurationQuery
Used to query the total duration of a stream.
|
class |
FormatsQuery
Used for querying formats of the stream.
|
class |
LatencyQuery |
class |
PositionQuery
Used to query an element for the current position in the stream.
|
class |
SeekingQuery
Used for querying the seeking properties of the stream.
|
class |
SegmentQuery
Used to discover information about the currently configured segment for playback.
|