public class ShoutcastSource extends NetworkSource
Source.SubstreamInfo
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_UNCONNECTED
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 |
---|
ShoutcastSource(java.lang.String path,
int flags,
java.beans.PropertyChangeListener listener)
Anonymously connects to the stream at the given address.
|
ShoutcastSource(java.lang.String path,
java.lang.String userName,
java.lang.String password,
int flags,
java.beans.PropertyChangeListener listener)
Connects to the stream at the given address using the supplied authorization.
%path can either be the address of the streaming server (like http://xxx.xxx.xxx.xxx:yyyy) or the path to a .pls playlist. |
ShoutcastSource(java.net.URL url,
int flags,
java.beans.PropertyChangeListener listener)
Anonymously connects to the stream at the given http URL.
|
Modifier and Type | Method and Description |
---|---|
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.
|
configurePasswordDialog, getDefaultInterfaceAddress, getPasswordDialogOptions, getServerInfo, getTimeConstraint, setConnectionTimeout, setHTTPConnector, setNetworkInterface, setSocketFactory, setTimeConstraint, setUserAgent
addSourceFilter, 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, read, sendEvent, setOffsetTime, setSourceRate, setSourceTime, streamSeek, syncRead
public ShoutcastSource(java.lang.String path, int flags, java.beans.PropertyChangeListener listener) throws java.lang.Exception
java.lang.Exception
public ShoutcastSource(java.net.URL url, int flags, java.beans.PropertyChangeListener listener) throws java.lang.Exception
java.lang.Exception
public ShoutcastSource(java.lang.String path, java.lang.String userName, java.lang.String password, int flags, java.beans.PropertyChangeListener listener) throws java.lang.Exception
java.lang.Exception
public void closeSource(boolean terminate)
Source
closeSource
in class Source
public DSGraph createGraph(int graphFlags)
Source
createGraph
in class Source
public DSGraph createGraph(int graphFlags, DSFilterInfo videoDecoder, DSFilterInfo audioDecoder) throws DSJException
Source
createGraph
in class Source
DSJException
public DSMediaType[] getMediaTypes()
Source
getMediaTypes
in class Source