|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.humatic.dsj.sink.JSink
public class JSink
Baseclass for non DirectShow Sinks. JSink provides the basic functionality for intercepting dataflow in a DSFiltergraph and
will call its subclasses' sampleReceived method with video or audio samples. Subclasses then provide packetizing and network
functionality according to the protocol they implement.
Unlike subclasses of Sink, JSinks will effectively be connected to the filtergraph after construction and DSFiltergraph.connectSink(..)
is not needed.
| Field Summary | |
|---|---|
static int |
AV_SYNC_IN
Sink errors |
static int |
BUFFER_OVERFLOW
Sink errors |
static int |
CLOSED
|
static int |
CONNECT
|
static int |
CONNECTED
|
static int |
CONNECTION_TIMEOUT
Sink errors |
static int |
DISPLAY_LOCAL
|
static int |
DUMP
subtypes |
static int |
ERROR
|
static int |
HTTP_AUDIO
subtypes |
static int |
LOCAL
|
static int |
MAX_BT_DROP
Sink options |
static int |
MAX_BT_WARN
Sink options |
static int |
MAX_DURATION
Sink errors |
static int |
MIN_BT
Sink options |
static int |
MJPG
subtypes |
static int |
MKV
subtypes |
static int |
NO_AUDIO
|
static int |
NO_VIDEO
|
static int |
OFFSET_TIME_IN
Sink options |
static int |
OFFSET_TIME_OUT
Sink options |
static int |
OPT_PKT_SIZE
|
static int |
PIPE_SIZE
Sink options |
static int |
pipeSize
|
static int |
PREVIEW
|
static int |
RTMP
subtypes |
static int |
RTP
subtypes |
static int |
SHOW_DLG_SAVE
|
static int |
SHOW_ENC_DLG
|
static int |
SOCKET_ERROR
Sink errors |
static int |
SOCKET_SBS
Sink options |
static int |
socketSendBufferSize
|
static int |
STARVING
Sink errors |
static int |
TSNET
subtypes |
static int |
UNCONNECTED
|
| Method Summary | |
|---|---|
void |
close()
Shuts down the sink and frees all resources it allocated. |
static JSink |
create(int type,
DSFiltergraph src,
java.io.OutputStream os,
DSMediaType[] types,
int sinkFlags)
|
int |
getID()
|
int |
getOutputBufferSize(int units)
Returns the number of samples (units == 0) or the time worth of data (units == 1) currently in the output queue. |
DSMediaType |
getOutputMediaType(int majorType)
|
void |
propertyChange(java.beans.PropertyChangeEvent pe)
|
void |
sampleReceived(SampleBuffer buffer)
Called from SampleAccessFilters used by this sink. |
static void |
setNetworkInterface(java.net.NetworkInterface iface)
|
void |
setSinkOption(int option,
int value)
|
static void |
setSocketOption(int option,
int value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MJPG
public static final int RTP
public static final int RTMP
public static final int TSNET
public static final int HTTP_AUDIO
public static final int MKV
public static final int DUMP
public static final int LOCAL
public static final int PREVIEW
public static final int DISPLAY_LOCAL
public static final int SHOW_ENC_DLG
public static final int SHOW_DLG_SAVE
public static final int UNCONNECTED
public static final int NO_AUDIO
public static final int NO_VIDEO
public static final int OPT_PKT_SIZE
public static final int CONNECT
public static final int CONNECTED
public static final int CLOSED
public static final int ERROR
public static final int CONNECTION_TIMEOUT
public static final int BUFFER_OVERFLOW
public static final int MAX_DURATION
public static final int STARVING
public static final int SOCKET_ERROR
public static final int AV_SYNC_IN
public static final int SOCKET_SBS
public static final int PIPE_SIZE
public static final int MIN_BT
public static final int MAX_BT_WARN
public static final int MAX_BT_DROP
public static final int OFFSET_TIME_IN
public static final int OFFSET_TIME_OUT
public static int socketSendBufferSize
public static int pipeSize
| Method Detail |
|---|
public static JSink create(int type,
DSFiltergraph src,
java.io.OutputStream os,
DSMediaType[] types,
int sinkFlags)
throws java.lang.Exception
java.lang.Exceptionpublic static void setNetworkInterface(java.net.NetworkInterface iface)
public DSMediaType getOutputMediaType(int majorType)
public int getOutputBufferSize(int units)
public static void setSocketOption(int option,
int value)
public void setSinkOption(int option,
int value)
public int getID()
public void close()
public void propertyChange(java.beans.PropertyChangeEvent pe)
propertyChange in interface java.beans.PropertyChangeListenerpublic void sampleReceived(SampleBuffer buffer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||