public class RTPSource extends NetworkSource
Source.SubstreamInfo| Modifier and Type | Field and Description |
|---|---|
static int |
FORCE_SDP_FRAMERATE |
static int |
FORCE_SDP_PAYLOAD |
static int |
NO_RTCP |
BUFFER_OVERFLOW, CONNECTION_TIMEOUT, FASTSTART, H264_FASTSTART, H264_FORCE_INLINE_SPS, H264_OMMIT_SPS, H264_PASS_INLINE_SPS, HTTP_ERROR, IDLE_TIMEOUT, KF_NOTIFY, LIVE_SRC, MAX_BUFFER_TIME, MAX_DURATION, MAX_FRAME_TIME, MP4V_MP2_VIDEOINFO, MP4V_OMMIT_VOL, MP4V_SKIP_UD, myBufferTime, NO_USER_PROMPT, READ_USER_DATA, RECEIVE_TIMEOUT, RTCP_RECEIVE_ERROR, SEEK_FAILURE, SOCKET_ERROR, STARVING, UDP_UNCONNECTEDASYNC, AUTO_GC, DIRECT, ES, FILTER_SETUP_ERROR, FLV, HTTP, HTTP_AUDIO, JAS, MJPG, MKV, MP4, PES_PRIVATE, PSNET, PULL, PUSH, RAW, RTMP, RTP, RTSP, SHOUTCAST, SS_CLOSED, SS_CONNECT, SS_CONNECTED, SS_DONE, SS_EOS, SS_FORMAT_READ, SS_REDIRECT, SS_RUNNING, SS_SEEKING, SS_SETUP, SS_STREAMS_READ, SS_TCP_ROLLOVER, TIMEOUT, TSFILE, TSNET, UNKNOWN| Constructor and Description |
|---|
RTPSource(java.lang.String[] URLs,
int[] localPorts,
int flags,
java.beans.PropertyChangeListener listener)
Tries to connect to the rtp streams at the given URLs, which must contain ip and port numbers (example:
{"230.0.0.1:40050", "230.0.0.1:40052"} or {"192.168.0.1:4050"}).
|
RTPSource(java.lang.String sdpPath,
int flags,
java.beans.PropertyChangeListener listener)
Special case constructor for "direct RTP" connections to sources using mediatypes that are not covered by
fixed payload ID mappings.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeSource(boolean terminate)
Closes down the source.
|
DSGraph |
createGraph(int graphFlags)
Use this to create a filtergraph from the source.
|
DSGraph |
createGraph(int graphFlags,
DSFilterInfo videoDecoder,
DSFilterInfo audioDecoder)
Creates a DSGraph object with CompressedJavaSource filters, fed from this source and the given video and audio decoders.
|
CompressedJavaSource |
createSourceFilter(int sf,
DSMediaType mediaType)
This is called by the various source implementations once they have determined, what kind of media they deal with etc.
It basically calls through to DSGraph.insertCompressedSourceFilter(...). |
DSMediaType[] |
getMediaTypes()
Returns the media types created by this source.
|
int |
getMinBufferTime()
Returns this Source's minimum buffer requirements in msec worth of data.
|
CompressedJavaSource[] |
getSourceFilters()
Returns all the CompressedJavaSource filters, that the Source created.
|
int |
getSourceTime() |
void |
notifyChannelFailure(int severity,
int chNr,
int cause,
java.lang.String desc) |
static void |
setMinBufferTime(int time) |
static void |
setReceiveBufferSize(int socketReceiveBufferSize) |
void |
setSourceRate(float rate)
Starts and pauses the source, application code should rather not use this method directly, but stick with DSFiltergraph methods.
|
void |
setSourceTime(int time)
Repositions the source, application code should rather not use this method directly, but stick with DSFiltergraph methods.
|
configurePasswordDialog, getDefaultInterfaceAddress, getPasswordDialogOptions, getServerInfo, getTimeConstraint, setConnectionTimeout, setHTTPConnector, setNetworkInterface, setSocketFactory, setTimeConstraint, setUserAgentaddSourceFilter, asyncRead, canSeek, configureFromSPS, createSourceFilter_async, getAvailable, getBuffered, getGraph, getID, getMaxTimeLoaded, getNumChannels, getOffsetTime, getPath, getSourceDuration, getSourceFilter, getSourceFlags, getTransport, getType, isLive, queryParameter_int, read, sendEvent, setOffsetTime, streamSeek, syncReadpublic static final int NO_RTCP
public static final int FORCE_SDP_FRAMERATE
public static final int FORCE_SDP_PAYLOAD
public RTPSource(java.lang.String[] URLs,
int[] localPorts,
int flags,
java.beans.PropertyChangeListener listener)
throws java.lang.Exception
java.lang.Exceptionpublic RTPSource(java.lang.String sdpPath,
int flags,
java.beans.PropertyChangeListener listener)
throws java.lang.Exception
java.lang.Exceptionpublic static void setMinBufferTime(int time)
public int getMinBufferTime()
SourcegetMinBufferTime in class Sourcepublic static void setReceiveBufferSize(int socketReceiveBufferSize)
public void closeSource(boolean terminate)
SourcecloseSource in class Sourcepublic int getSourceTime()
getSourceTime in class Sourcepublic void setSourceTime(int time)
SourcesetSourceTime in class Sourcepublic void setSourceRate(float rate)
SourcesetSourceRate in class Sourcepublic DSGraph createGraph(int graphFlags) throws DSJException
createGraph in class SourceDSJExceptionpublic DSGraph createGraph(int graphFlags, DSFilterInfo videoDecoder, DSFilterInfo audioDecoder) throws DSJException
SourcecreateGraph in class SourceDSJExceptionpublic DSMediaType[] getMediaTypes()
SourcegetMediaTypes in class Sourcepublic CompressedJavaSource createSourceFilter(int sf, DSMediaType mediaType)
SourcecreateSourceFilter in class Sourcepublic CompressedJavaSource[] getSourceFilters()
SourcegetSourceFilters in class Sourcepublic void notifyChannelFailure(int severity,
int chNr,
int cause,
java.lang.String desc)
notifyChannelFailure in class Source