public class AppSrc extends BaseSrc
Modifier and Type | Class and Description |
---|---|
static interface |
AppSrc.ENOUGH_DATA
Signal emitted when this
AppSrc has enough data in the queue. |
static interface |
AppSrc.NEED_DATA
Signal emitted when this
AppSrc needs data. |
static interface |
AppSrc.SEEK_DATA
Signal emitted when this
AppSrc when it requires the application
to push buffers from a specific location in the input stream. |
static class |
AppSrc.Type |
BaseSrc.HANDOFF
Element.NO_MORE_PADS, Element.PAD_ADDED, Element.PAD_REMOVED
GObject.GCallback
NativeObject.Initializer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GST_NAME |
defaultInit, ownsHandle
Constructor and Description |
---|
AppSrc(NativeObject.Initializer init) |
Modifier and Type | Method and Description |
---|---|
void |
connect(AppSrc.ENOUGH_DATA listener)
Adds a listener for the
enough-data signal |
void |
connect(AppSrc.NEED_DATA listener)
Adds a listener for the
need-data signal |
void |
connect(AppSrc.SEEK_DATA listener)
Adds a listener for the
seek-data signal |
void |
disconnect(AppSrc.ENOUGH_DATA listener)
Removes a listener for the
enough-data signal |
void |
disconnect(AppSrc.NEED_DATA listener)
Removes a listener for the
need-data signal |
void |
disconnect(AppSrc.SEEK_DATA listener)
Removes a listener for the
seek-data signal |
void |
endOfStream() |
Caps |
getCaps() |
void |
getLatency(long[] minmax) |
long |
getMaxBytes() |
long |
getSize() |
void |
pushBuffer(Buffer buffer) |
void |
setCaps(Caps caps)
Sets the
Caps on this Element. |
void |
setLatency(long min,
long max) |
void |
setMaxBytes(long max) |
void |
setSize(long size) |
void |
setStreamType(AppSrc.Type type) |
connect, disconnect, getBlocksize, getTimestamp, isLive, newSeamlessSegment, queryLatency, setBlocksize, setFormat, setLive, setTimestamp, waitPlaying
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
addListenerProxy, getName, getParent, initializer, initializer, ref, removeListenerProxy, setName, steal, toString, unref
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, invalidate, objectForX, removeCallback, set
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor
public static final java.lang.String GST_NAME
public AppSrc(NativeObject.Initializer init)
public void setCaps(Caps caps)
Element
Caps
on this Element.public Caps getCaps()
public void setSize(long size)
public long getSize()
public void setStreamType(AppSrc.Type type)
public void setMaxBytes(long max)
public long getMaxBytes()
public void setLatency(long min, long max)
public void getLatency(long[] minmax)
public void pushBuffer(Buffer buffer)
public void endOfStream()
public void connect(AppSrc.NEED_DATA listener)
need-data
signallistener
- Listener to be called when appsrc needs data.public void disconnect(AppSrc.NEED_DATA listener)
need-data
signallistener
- The listener that was previously added.public void connect(AppSrc.ENOUGH_DATA listener)
enough-data
signallistener
- Listener to be called this when appsrc fills its queue.public void disconnect(AppSrc.ENOUGH_DATA listener)
enough-data
signallistener
- The listener that was previously added.public void connect(AppSrc.SEEK_DATA listener)
seek-data
signallistener
- 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.public void disconnect(AppSrc.SEEK_DATA listener)
seek-data
signallistener
- The listener that was previously added.