public class TSNetworkSource extends NetworkSource implements MPEGSource
Source.SubstreamInfo| Modifier and Type | Field and Description |
|---|---|
static int |
MONITOR_PAT
source flags
|
static int |
RECORD
source flags
|
protected boolean |
streamScanned |
static int |
VPS
source flags
|
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, 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, UNKNOWNNO_AUDIO, RESOLVE| Constructor and Description |
|---|
TSNetworkSource(java.lang.String ip,
int port,
int[] pidsAndStreamTypes,
int srcFlags,
java.beans.PropertyChangeListener listener)
Opens a transport stream from a udp connection, using the given PMT and elementary stream PIDs and streamtypes.
|
TSNetworkSource(java.lang.String ip,
int port,
int srcFlags,
java.beans.PropertyChangeListener listener)
Opens a transport stream from a udp connection.
|
TSNetworkSource(java.lang.String ip,
int port,
MPEGProgram prg,
int srcFlags,
java.beans.PropertyChangeListener listener)
Opens a transport stream, transmitted via udp, optionally tuneing to the specified program in a broadcast stream.(%prg can be null)
See comments in first constructor for possible srcFlags values. |
TSNetworkSource(java.net.URL url,
int srcFlags,
java.beans.PropertyChangeListener listener)
Opens a transport stream transmitted via http.
|
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(java.lang.String baseIP,
MPEGProgram[] prgs,
int flags)
Relays the received transport stream to the network.
|
void |
closeSource(boolean terminate)
Closes down the source.
|
DSGraph |
createGraph(int graphFlags)
Creates a DSGraph object with CompressedJavaSource filters that are fed from this 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.
|
DSMediaType[] |
getMediaTypes()
Returns the media types created by this source.
|
int |
getPMT_PID()
Returns the PMT PID of the currently playing program.
|
int[] |
getProgramPIDs()
Returns the elementary stream PIDs of the currently playing program.
|
MPEGProgram[] |
getPrograms()
Returns an array of all programs seen in a stream.
|
java.lang.String |
getServerInfo() |
int[] |
getStreamTypes()
Returns the elementary streamtypes of the currently playing program.
|
byte[] |
read()
When in PULL mode, the source filter calls this method to pull data from the source.
|
static void |
setAudioStreamIndex(int audioStreamIndex) |
static void |
setBufferSizes(int socketReceiveBufferSize,
int reqPacketSize)
Utility to change the default buffer size used on the socket and in data transfer to DirectShow.
|
configurePasswordDialog, getDefaultInterfaceAddress, getPasswordDialogOptions, getTimeConstraint, setConnectionTimeout, setHTTPConnector, setNetworkInterface, setSocketFactory, setTimeConstraint, setUserAgentaddSourceFilter, asyncRead, canSeek, configureFromSPS, createSourceFilter_async, createSourceFilter, getAvailable, getBuffered, getGraph, getID, getMaxTimeLoaded, getMinBufferTime, getNumChannels, getOffsetTime, getPath, getSourceDuration, getSourceFilter, getSourceFilters, getSourceFlags, getSourceTime, getTransport, getType, isLive, notifyChannelFailure, queryParameter_int, sendEvent, setOffsetTime, setSourceRate, setSourceTime, streamSeek, syncReadprotected boolean streamScanned
public static final int MONITOR_PAT
public static final int RECORD
public static final int VPS
public TSNetworkSource(java.lang.String ip,
int port,
int srcFlags,
java.beans.PropertyChangeListener listener)
throws java.lang.Exception
java.lang.Exceptionpublic TSNetworkSource(java.lang.String ip,
int port,
MPEGProgram prg,
int srcFlags,
java.beans.PropertyChangeListener listener)
throws java.lang.Exception
java.lang.Exceptionpublic TSNetworkSource(java.net.URL url,
int srcFlags,
java.beans.PropertyChangeListener listener)
throws java.lang.Exception
java.lang.Exceptionpublic TSNetworkSource(java.lang.String ip,
int port,
int[] pidsAndStreamTypes,
int srcFlags,
java.beans.PropertyChangeListener listener)
throws java.lang.Exception
java.lang.Exceptionpublic static void setBufferSizes(int socketReceiveBufferSize,
int reqPacketSize)
public static void setAudioStreamIndex(int audioStreamIndex)
public DSGraph createGraph(int graphFlags)
SourcecreateGraph in class Sourcepublic DSGraph createGraph(int graphFlags, DSFilterInfo videoDecoder, DSFilterInfo audioDecoder)
SourcecreateGraph in class Sourcepublic void closeSource(boolean terminate)
SourcecloseSource in class Sourcepublic DSMediaType[] getMediaTypes()
SourcegetMediaTypes in class Sourcepublic int getPMT_PID()
MPEGSourcegetPMT_PID in interface MPEGSourcepublic int[] getProgramPIDs()
MPEGSourcegetProgramPIDs in interface MPEGSourcepublic int[] getStreamTypes()
MPEGSourcegetStreamTypes in interface MPEGSourcepublic MPEGProgram[] getPrograms()
MPEGSourcegetPrograms in interface MPEGSourcepublic void broadcast(java.lang.String baseIP,
MPEGProgram[] prgs,
int flags)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getServerInfo()
getServerInfo in class NetworkSourcepublic byte[] read()
Source