org.gstreamer.elements
Class DecodeBin2

java.lang.Object
  extended by org.gstreamer.lowlevel.NativeValue
      extended by org.gstreamer.lowlevel.Handle
          extended by org.gstreamer.lowlevel.NativeObject
              extended by org.gstreamer.lowlevel.RefCountedObject
                  extended by org.gstreamer.GObject
                      extended by org.gstreamer.GstObject
                          extended by org.gstreamer.Element
                              extended by org.gstreamer.Bin
                                  extended by org.gstreamer.elements.DecodeBin2

public class DecodeBin2
extends Bin

Utility Element to automatically identify media stream types and hook up elements.


Nested Class Summary
static interface DecodeBin2.AUTOPLUG_CONTINUE
          Signal is emitted when a pad for which there is no further possible decoding is added to the DecodeBin2.
static interface DecodeBin2.AUTOPLUG_FACTORIES
          This function is emitted when an array of possible factories for caps on pad is needed.
static interface DecodeBin2.AUTOPLUG_SORT
          Once DecodeBin2 has found the possible ElementFactory objects to try for caps on pad, this signal is emitted.
static interface DecodeBin2.DRAINED
          This signal is emitted once DecodeBin2 has finished decoding all the data.
static interface DecodeBin2.NEW_DECODED_PAD
          Signal emitted when this DecodeBin2 decodes a new pad.
static interface DecodeBin2.REMOVED_DECODED_PAD
          Signal emitted when this DecodeBin2 decodes a removed pad.
static interface DecodeBin2.UNKNOWN_TYPE
          Signal is emitted when a pad for which there is no further possible decoding is added to the DecodeBin2.
 
Nested classes/interfaces inherited from class org.gstreamer.Bin
Bin.DO_LATENCY, Bin.ELEMENT_ADDED, Bin.ELEMENT_REMOVED
 
Nested classes/interfaces inherited from class org.gstreamer.Element
Element.NO_MORE_PADS, Element.PAD_ADDED, Element.PAD_REMOVED
 
Nested classes/interfaces inherited from class org.gstreamer.GObject
GObject.GCallback
 
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject
NativeObject.Initializer
 
Field Summary
static java.lang.String GST_NAME
           
 
Fields inherited from class org.gstreamer.Bin
DEBUG_GRAPH_SHOW_ALL, DEBUG_GRAPH_SHOW_CAPS_DETAILS, DEBUG_GRAPH_SHOW_MEDIA_TYPE, DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS, DEBUG_GRAPH_SHOW_STATES
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, ownsHandle
 
Constructor Summary
DecodeBin2(NativeObject.Initializer init)
           
DecodeBin2(java.lang.String name)
          Creates a new DecodeBin2.
 
Method Summary
 void connect(DecodeBin2.AUTOPLUG_CONTINUE listener)
          Adds a listener for the autoplug-continue signal
 void connect(DecodeBin2.AUTOPLUG_FACTORIES listener)
          Adds a listener for the autoplug-factories signal
 void connect(DecodeBin2.AUTOPLUG_SORT listener)
          Adds a listener for the autoplug-sort signal
 void connect(DecodeBin2.DRAINED listener)
          Adds a listener for the drained signal
 void connect(DecodeBin2.NEW_DECODED_PAD listener)
          Adds a listener for the new-decoded-pad signal
 void connect(DecodeBin2.REMOVED_DECODED_PAD listener)
          Adds a listener for the removed-decoded-pad signal
 void connect(DecodeBin2.UNKNOWN_TYPE listener)
          Adds a listener for the unknown-type signal
 void disconnect(DecodeBin2.AUTOPLUG_CONTINUE listener)
          Removes a listener for the autoplug-continue signal
 void disconnect(DecodeBin2.AUTOPLUG_FACTORIES listener)
          Removes a listener for the autoplug-factories signal
 void disconnect(DecodeBin2.AUTOPLUG_SORT listener)
          Removes a listener for the autoplug-sort signal
 void disconnect(DecodeBin2.DRAINED listener)
          Removes a listener for the drained signal
 void disconnect(DecodeBin2.NEW_DECODED_PAD listener)
          Removes a listener for the new-decoded-pad signal
 void disconnect(DecodeBin2.REMOVED_DECODED_PAD listener)
          Removes a listener for the removed-decoded-pad signal
 void disconnect(DecodeBin2.UNKNOWN_TYPE listener)
          Removes a listener for the unknown-type signal
 
Methods inherited from class org.gstreamer.Bin
add, addMany, connect, connect, connect, debugToDotFile, debugToDotFile, disconnect, disconnect, disconnect, getElementByInterface, getElementByName, getElementByNameRecurseUp, getElements, getElementsRecursive, getElementsSorted, getSinks, getSources, launch, remove, removeMany
 
Methods inherited from class org.gstreamer.Element
addPad, connect, connect, connect, disconnect, disconnect, disconnect, getBaseTime, getBus, getClock, getFactory, getPad, getPads, getRequestPad, getSinkPads, getSrcPads, getStartTime, getState, getState, getState, getState, getStaticPad, isPlaying, link, link, linkMany, linkPads, linkPadsFiltered, makeRawElement, pause, play, postMessage, ready, releaseRequestPad, removePad, sendEvent, setBaseTime, setCaps, setLockedState, setStartTime, setState, stop, syncStateWithParent, unlink, unlinkMany, unlinkPads
 
Methods inherited from class org.gstreamer.GstObject
addListenerProxy, getName, getParent, initializer, initializer, ref, removeListenerProxy, setName, steal, toString, unref
 
Methods inherited from class org.gstreamer.GObject
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, invalidate, objectFor, removeCallback, set
 
Methods inherited from class org.gstreamer.lowlevel.NativeObject
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GST_NAME

public static final java.lang.String GST_NAME
See Also:
Constant Field Values
Constructor Detail

DecodeBin2

public DecodeBin2(java.lang.String name)
Creates a new DecodeBin2.

Parameters:
name - The name used to identify this DecodeBin.

DecodeBin2

public DecodeBin2(NativeObject.Initializer init)
Method Detail

connect

public void connect(DecodeBin2.NEW_DECODED_PAD listener)
Adds a listener for the new-decoded-pad signal

Parameters:
listener - Listener to be called when a new Pad is encountered on the Element

disconnect

public void disconnect(DecodeBin2.NEW_DECODED_PAD listener)
Removes a listener for the new-decoded-pad signal

Parameters:
listener - The listener that was previously added.

connect

public void connect(DecodeBin2.REMOVED_DECODED_PAD listener)
Adds a listener for the removed-decoded-pad signal

Parameters:
listener - Listener to be called when a new Pad is encountered on the Element

disconnect

public void disconnect(DecodeBin2.REMOVED_DECODED_PAD listener)
Removes a listener for the removed-decoded-pad signal

Parameters:
listener - The listener that was previously added.

connect

public void connect(DecodeBin2.UNKNOWN_TYPE listener)
Adds a listener for the unknown-type signal

Parameters:
listener - Listener to be called when a new Pad is encountered on the Element

disconnect

public void disconnect(DecodeBin2.UNKNOWN_TYPE listener)
Removes a listener for the unknown-type signal

Parameters:
listener - The listener that was previously added.

connect

public void connect(DecodeBin2.AUTOPLUG_CONTINUE listener)
Adds a listener for the autoplug-continue signal

Parameters:
listener - Listener to be called when a new Pad is encountered on the Element

disconnect

public void disconnect(DecodeBin2.AUTOPLUG_CONTINUE listener)
Removes a listener for the autoplug-continue signal

Parameters:
listener - The listener that was previously added.

connect

public void connect(DecodeBin2.AUTOPLUG_FACTORIES listener)
Adds a listener for the autoplug-factories signal

Parameters:
listener - Listener to be called when a new Pad is encountered on the Element

disconnect

public void disconnect(DecodeBin2.AUTOPLUG_FACTORIES listener)
Removes a listener for the autoplug-factories signal

Parameters:
listener - The listener that was previously added.

connect

public void connect(DecodeBin2.AUTOPLUG_SORT listener)
Adds a listener for the autoplug-sort signal

Parameters:
listener - Listener to be called when a new Pad is encountered on the Element

disconnect

public void disconnect(DecodeBin2.AUTOPLUG_SORT listener)
Removes a listener for the autoplug-sort signal

Parameters:
listener - The listener that was previously added.

connect

public void connect(DecodeBin2.DRAINED listener)
Adds a listener for the drained signal

Parameters:
listener - Listener to be called when a new Pad is encountered on the Element

disconnect

public void disconnect(DecodeBin2.DRAINED listener)
Removes a listener for the drained signal

Parameters:
listener - The listener that was previously added.