public class DataSource extends PullDataSource implements SourceCloneable
DURATION_UNBOUNDED, DURATION_UNKNOWN| Constructor and Description |
|---|
DataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
DataSource |
createClone()
Based on JMF testing, the clone is in the same state as the original (opened and connected if the original is), but at the beginning of the media, not whatever position the original is.
|
void |
disconnect() |
java.lang.String |
getContentType() |
java.lang.Object |
getControl(java.lang.String controlName) |
java.lang.Object[] |
getControls() |
Time |
getDuration() |
PullSourceStream[] |
getStreams() |
void |
start() |
void |
stop() |
getLocator, initCheck, setLocatorpublic DataSource createClone()
SourceCloneablecreateClone in interface SourceCloneablepublic PullSourceStream[] getStreams()
getStreams in class PullDataSourcepublic void connect()
throws java.io.IOException
connect in class DataSourcejava.io.IOExceptionpublic java.lang.String getContentType()
getContentType in class DataSourcepublic void disconnect()
disconnect in class DataSourcepublic void start()
throws java.io.IOException
start in class DataSourcejava.io.IOExceptionpublic void stop()
throws java.io.IOException
stop in class DataSourcejava.io.IOExceptionpublic Time getDuration()
getDuration in interface DurationgetDuration in class DataSourcepublic java.lang.Object[] getControls()
getControls in interface ControlsgetControls in class DataSourcepublic java.lang.Object getControl(java.lang.String controlName)
getControl in interface ControlsgetControl in class DataSource