public class DASHSource extends NetworkSource
BUFFER_OVERFLOW, CONNECTION_TIMEOUT, FASTSTART, H264_FASTSTART, H264_FORCE_INLINE_SPS, H264_OMMIT_SPS, H264_PASS_INLINE_SPS, IDLE_TIMEOUT, KF_NOTIFY, LIVE_SRC, MAX_BUFFER_TIME, MAX_DURATION, MAX_FRAME_TIME, 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, PSNET, PULL, PUSH, RAW, RTMP, RTP, RTSP, SHOUTCAST, SS_CLOSED, SS_CONNECT, SS_CONNECTED, SS_DONE, SS_EOS, SS_FORMAT_READ, SS_RUNNING, SS_SEEKING, SS_SETUP, SS_STREAMS_READ, SS_TCP_ROLLOVER, TIMEOUT, TSFILE, TSNET, UNKNOWN| Constructor and Description |
|---|
DASHSource(java.net.URL mpdURL,
int flags,
java.beans.PropertyChangeListener listener)
Opens the mpd (Media Presentation Description) at the given http:// URL.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSeek()
Overridden to return false, this source can not yet seek.
|
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.
|
protected void |
downloadSegments(java.lang.String[] urls,
int numSegs) |
DSMediaType[] |
getMediaTypes()
Returns the media types created by this source.
|
int |
getMinBufferTime()
Returns this Source's minimum buffer requirements in msec worth of data.
|
protected int |
getNextSegment() |
int |
getSourceTime() |
void |
selectStream(java.lang.String bandWidth)
To select a bandwith specific stream, this method can be called in reaction to a PLAYLIST_PARSED
event, which will pass a String[] describing available streams.
|
configurePasswordDialog, getDefaultInterfaceAddress, getPasswordDialogOptions, getServerInfo, getTimeConstraint, setConnectionTimeout, setHTTPConnector, setNetworkInterface, setSocketFactory, setTimeConstraint, setUserAgentaddSourceFilter, asyncRead, createSourceFilter_async, createSourceFilter, getAvailable, getBuffered, getGraph, getID, getMaxTimeLoaded, getNumChannels, getOffsetTime, getPath, getSourceDuration, getSourceFilter, getSourceFilters, getSourceFlags, getTransport, getType, isLive, notifyChannelFailure, queryParameter_int, read, sendEvent, setOffsetTime, setSourceRate, setSourceTime, streamSeek, syncReadpublic DASHSource(java.net.URL mpdURL,
int flags,
java.beans.PropertyChangeListener listener)
throws java.lang.Exception
java.lang.Exceptionpublic void closeSource(boolean terminate)
SourcecloseSource in class Sourcepublic int getSourceTime()
getSourceTime in class Sourcepublic boolean canSeek()
public int getMinBufferTime()
SourcegetMinBufferTime in class Sourcepublic DSGraph createGraph(int graphFlags)
SourcecreateGraph in class Sourcepublic DSGraph createGraph(int graphFlags, DSFilterInfo videoDecoder, DSFilterInfo audioDecoder)
SourcecreateGraph in class Sourcepublic DSMediaType[] getMediaTypes()
SourcegetMediaTypes in class Sourcepublic void selectStream(java.lang.String bandWidth)
protected int getNextSegment()
protected void downloadSegments(java.lang.String[] urls,
int numSegs)