public class RTPSink extends JSink
| Modifier and Type | Field and Description |
|---|---|
static int |
FORCE_TCP |
static int |
LATM |
static int |
NO_RTCP |
static int |
RECORD |
AV_SYNC_IN, BUFFER_OVERFLOW, CLOSED, CONNECT, CONNECTED, CONNECTION_TIMEOUT, DISPLAY_LOCAL, DUMP, ERROR, HTTP_AUDIO, LOCAL, MAX_BT_DROP, MAX_BT_WARN, MAX_DURATION, MIN_BT, MJPG, MKV, NO_AUDIO, NO_VIDEO, OFFSET_TIME_IN, OFFSET_TIME_OUT, OPT_PKT_SIZE, PIPE_SIZE, pipeSize, PREVIEW, RTMP, RTP, SHOW_DLG_SAVE, SHOW_ENC_DLG, SOCKET_ERROR, SOCKET_SBS, socketSendBufferSize, STARVING, TSNET, UNCONNECTED| Constructor and Description |
|---|
RTPSink(DSFiltergraph grf,
java.lang.String[] targetURLs,
DSFilterInfo videoEncoder,
DSFilterInfo audioEncoder,
StreamAnnouncement sa,
int flags)
Constructs an RTPSink and connects it to the given filtergraph.
%targetURLs - a min 1, max. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shuts down the sink and frees all resources it allocated.
|
void |
connect()
When constructing the sink with the JSink.UNCONNECTED flag set, call this after encoders are configured.
|
void |
propertyChange(java.beans.PropertyChangeEvent pe) |
void |
sampleReceived(SampleBuffer inBuffer)
Called from SampleAccessFilters used by this sink.
|
static void |
setLocalPort(int port) |
create, getID, getOutputBufferSize, getOutputMediaType, setNetworkInterface, setSinkOption, setSocketOptionpublic static final int NO_RTCP
public static final int FORCE_TCP
public static final int RECORD
public static final int LATM
public RTPSink(DSFiltergraph grf, java.lang.String[] targetURLs, DSFilterInfo videoEncoder, DSFilterInfo audioEncoder, StreamAnnouncement sa, int flags) throws java.lang.Exception
java.lang.Exceptionpublic void connect()
throws java.lang.Exception
java.lang.Exceptionpublic void sampleReceived(SampleBuffer inBuffer)
JSinksampleReceived in class JSinkpublic static void setLocalPort(int port)
public void propertyChange(java.beans.PropertyChangeEvent pe)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class JSink