org.gstreamer.elements
Class AppSrc
java.lang.Object
org.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.GObject
org.gstreamer.GstObject
org.gstreamer.Element
org.gstreamer.elements.BaseSrc
org.gstreamer.elements.AppSrc
public class AppSrc
- extends BaseSrc
Enables an application to feed buffers into a pipeline.
Field Summary |
static java.lang.String |
GST_NAME
|
Methods inherited from class org.gstreamer.elements.BaseSrc |
connect, disconnect, getBlocksize, getTimestamp, isLive, newSeamlessSegment, queryLatency, setBlocksize, setFormat, setLive, setTimestamp, waitPlaying |
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, 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 |
GST_NAME
public static final java.lang.String GST_NAME
- See Also:
- Constant Field Values
AppSrc
public AppSrc(NativeObject.Initializer init)
setCaps
public void setCaps(Caps caps)
- Description copied from class:
Element
- Sets the
Caps
on this Element.
- Overrides:
setCaps
in class Element
- Parameters:
caps
- the new Caps to set.
getCaps
public Caps getCaps()
setSize
public void setSize(long size)
getSize
public long getSize()
setStreamType
public void setStreamType(AppSrc.Type type)
setMaxBytes
public void setMaxBytes(long max)
getMaxBytes
public long getMaxBytes()
setLatency
public void setLatency(long min,
long max)
getLatency
public void getLatency(long[] minmax)
pushBuffer
public void pushBuffer(Buffer buffer)
endOfStream
public void endOfStream()
connect
public void connect(AppSrc.NEED_DATA listener)
- Adds a listener for the
need-data
signal
- Parameters:
listener
- Listener to be called when appsrc needs data.
disconnect
public void disconnect(AppSrc.NEED_DATA listener)
- Removes a listener for the
need-data
signal
- Parameters:
listener
- The listener that was previously added.
connect
public void connect(AppSrc.ENOUGH_DATA listener)
- Adds a listener for the
enough-data
signal
- Parameters:
listener
- Listener to be called this when appsrc fills its queue.
disconnect
public void disconnect(AppSrc.ENOUGH_DATA listener)
- Removes a listener for the
enough-data
signal
- Parameters:
listener
- The listener that was previously added.
connect
public void connect(AppSrc.SEEK_DATA listener)
- Adds a listener for the
seek-data
signal
- Parameters:
listener
- Listener to be called when appsrc when its "stream-mode"
property is set to "seekable" or "random-access". The signal argument
will contain the new desired position in the stream expressed in the unit
set with the "format" property. After receiving the seek-data signal,
the application should push-buffers from the new position.
disconnect
public void disconnect(AppSrc.SEEK_DATA listener)
- Removes a listener for the
seek-data
signal
- Parameters:
listener
- The listener that was previously added.