public class NetworkSource extends Source
Source.SubstreamInfo
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_OVERFLOW
Source errors
|
static int |
CONNECTION_TIMEOUT
Source errors
|
static int |
FASTSTART
Source constructor options, subclasses define additional values.
|
static int |
H264_FASTSTART
Source constructor options, subclasses define additional values.
|
static int |
H264_FORCE_INLINE_SPS
Source constructor options, subclasses define additional values.
|
static int |
H264_OMMIT_SPS
Source constructor options, subclasses define additional values.
|
static int |
H264_PASS_INLINE_SPS
Source constructor options, subclasses define additional values.
|
static int |
HTTP_ERROR
Source errors
|
static int |
IDLE_TIMEOUT
time constraints
|
static int |
KF_NOTIFY
Source constructor options, subclasses define additional values.
|
static int |
LIVE_SRC
Source constructor options, subclasses define additional values.
|
static int |
MAX_BUFFER_TIME
time constraints
|
static int |
MAX_DURATION
Source errors
|
static int |
MAX_FRAME_TIME
time constraints
|
static int |
MP4V_MP2_VIDEOINFO
Source constructor options, subclasses define additional values.
|
static int |
MP4V_OMMIT_VOL
Source constructor options, subclasses define additional values.
|
static int |
MP4V_SKIP_UD
Source constructor options, subclasses define additional values.
|
protected int |
myBufferTime |
static int |
NO_USER_PROMPT
Source constructor options, subclasses define additional values.
|
static int |
READ_USER_DATA
Source constructor options, subclasses define additional values.
|
static int |
RECEIVE_TIMEOUT
Source errors
|
static int |
RTCP_RECEIVE_ERROR
Source errors
|
static int |
SEEK_FAILURE
Source errors
|
static int |
SOCKET_ERROR
Source errors
|
static int |
STARVING
Source errors
|
static int |
UDP_UNCONNECTED
Source constructor options, subclasses define additional values.
|
ASYNC, 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 |
---|
NetworkSource()
Empty constructor, does nothing.
|
Modifier and Type | Method and Description |
---|---|
static void |
configurePasswordDialog(java.lang.String title,
java.lang.String txt,
java.lang.String lookAndFeel,
javax.swing.ImageIcon icon)
Changes the appearance of the authentication dialog brought up on password protected streams.
|
static java.net.InetAddress |
getDefaultInterfaceAddress() |
static java.lang.Object[] |
getPasswordDialogOptions() |
java.lang.String |
getServerInfo() |
static int |
getTimeConstraint(int constraint) |
static void |
setConnectionTimeout(int msec)
Adjusts the period, that connection attempts are given up after.
|
static void |
setHTTPConnector(HTTPConnector connector)
Set an application defined HttpURLConnection factory class to be used by all subclasses that use URLConnection
(MPEG4Source, FLVSource, AsyncSource, HTTPAudioSource, MJPGNetworkSource, PSNetworkSource, TSNetworkSource/http).
|
static void |
setNetworkInterface(java.net.NetworkInterface iface)
Explicitely sets a network interface to be used by MulticastSockets.
|
static void |
setSocketFactory(javax.net.SocketFactory factory)
Set the socket factory to be used by all subclasses that use java.net.Socket (RTSPSource, RTMPSource, HTTPStreamingSource, DASHSource).
|
static void |
setTimeConstraint(int constraint,
int value) |
static void |
setUserAgent(java.lang.String name)
You can add an application specific prefix to the useragent string used when connecting to servers.
|
addSourceFilter, asyncRead, canSeek, closeSource, configureFromSPS, createGraph, createGraph, createSourceFilter_async, createSourceFilter, getAvailable, getBuffered, getGraph, getID, getMaxTimeLoaded, getMediaTypes, getMinBufferTime, getNumChannels, getOffsetTime, getPath, getSourceDuration, getSourceFilter, getSourceFilters, getSourceFlags, getSourceTime, getTransport, getType, isLive, notifyChannelFailure, queryParameter_int, read, sendEvent, setOffsetTime, setSourceRate, setSourceTime, streamSeek, syncRead
public static final int LIVE_SRC
public static final int KF_NOTIFY
public static final int READ_USER_DATA
public static final int NO_USER_PROMPT
public static final int UDP_UNCONNECTED
public static final int FASTSTART
public static final int H264_FASTSTART
public static final int H264_OMMIT_SPS
public static final int MP4V_OMMIT_VOL
public static final int H264_FORCE_INLINE_SPS
public static final int MP4V_MP2_VIDEOINFO
public static final int H264_PASS_INLINE_SPS
public static final int MP4V_SKIP_UD
public static final int CONNECTION_TIMEOUT
public static final int RECEIVE_TIMEOUT
public static final int BUFFER_OVERFLOW
public static final int RTCP_RECEIVE_ERROR
public static final int SEEK_FAILURE
public static final int MAX_DURATION
public static final int STARVING
public static final int SOCKET_ERROR
public static final int HTTP_ERROR
public static final int MAX_FRAME_TIME
public static final int MAX_BUFFER_TIME
public static final int IDLE_TIMEOUT
protected int myBufferTime
public NetworkSource() throws java.lang.Exception
java.lang.Exception
public java.lang.String getServerInfo()
public static void setConnectionTimeout(int msec)
public static void setUserAgent(java.lang.String name)
public static void configurePasswordDialog(java.lang.String title, java.lang.String txt, java.lang.String lookAndFeel, javax.swing.ImageIcon icon)
public static java.lang.Object[] getPasswordDialogOptions()
public static void setNetworkInterface(java.net.NetworkInterface iface)
public static java.net.InetAddress getDefaultInterfaceAddress() throws java.lang.Exception
java.lang.Exception
public static void setTimeConstraint(int constraint, int value)
public static int getTimeConstraint(int constraint)
public static void setHTTPConnector(HTTPConnector connector)
public static void setSocketFactory(javax.net.SocketFactory factory)