|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
Enables an application to feed buffers into a pipeline.
Nested Class Summary | |
---|---|
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
|
Nested classes/interfaces inherited from class org.gstreamer.Element |
---|
Element.HANDOFF, 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 |
---|
Fields inherited from class org.gstreamer.lowlevel.NativeObject |
---|
defaultInit, ownsHandle |
Constructor Summary | |
---|---|
AppSrc(NativeObject.Initializer init)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.gstreamer.elements.BaseSrc |
---|
isLive, setFormat, setLive |
Methods inherited from class org.gstreamer.Element |
---|
addPad, connect, connect, connect, connect, disconnect, disconnect, disconnect, disconnect, getBaseTime, getBus, getClock, getFactory, getPad, getPads, getRequestPad, getSinkPads, getSrcPads, getState, getState, getState, getState, getStaticPad, link, link, linkMany, linkPads, linkPadsFiltered, makeRawElement, postMessage, releaseRequestPad, removePad, sendEvent, setState, syncStateWithParent, unlink, unlinkMany, unlinkPads |
Methods inherited from class org.gstreamer.GstObject |
---|
addListenerProxy, getName, getParent, initializer, initializer, objectFor, objectFor, ref, removeListenerProxy, setName, steal, toString, unref |
Methods inherited from class org.gstreamer.GObject |
---|
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, 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 |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AppSrc(NativeObject.Initializer init)
Method Detail |
---|
public void setCaps(Caps caps)
Element
Caps
on this Element.
setCaps
in class Element
caps
- the new Caps to set.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
signal
listener
- Listener to be called when appsrc needs data.public void disconnect(AppSrc.NEED_DATA listener)
need-data
signal
listener
- The listener that was previously added.public void connect(AppSrc.ENOUGH_DATA listener)
enough-data
signal
listener
- Listener to be called this when appsrc fills its queue.public void disconnect(AppSrc.ENOUGH_DATA listener)
enough-data
signal
listener
- The listener that was previously added.public void connect(AppSrc.SEEK_DATA listener)
seek-data
signal
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.public void disconnect(AppSrc.SEEK_DATA listener)
seek-data
signal
listener
- The listener that was previously added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |