public class DataSource extends AbstractVideoPullBufferCaptureDevice
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and Description |
---|---|
protected IVFStream |
createStream(int streamIndex,
javax.media.control.FormatControl formatControl)
Creates a new PullBufferStream which is to be at a specific
zero-based index in the list of streams of this
PullBufferDataSource.
|
void |
doConnect()
doConnect allows us to initialize the DataSource with information that
we couldn't have in the constructor, like the MediaLocator that give us
the path of the ivf file which give us information on the format
|
protected javax.media.Format[] |
getSupportedFormats(int streamIndex)
Gets the Formats which are to be reported by a
FormatControl as supported formats for a
PullBufferStream at a specific zero-based index in the list of
streams of this PullBufferDataSource.
|
createFrameRateControl
connect, disconnect, doDisconnect, doStart, doStop, getCaptureDeviceInfo, getContentType, getControl, getControls, getDuration, getFormat, getFormatControls, getStreams, getStreamSyncRoot, setCaptureDeviceInfo, setFormat, start, stop, streams
public void doConnect() throws java.io.IOException
doConnect
in class AbstractPullBufferCaptureDevice
java.io.IOException
- if anything goes wrong while opening the connection
to the media source specified by the MediaLocator of this
DataSourceprotected IVFStream createStream(int streamIndex, javax.media.control.FormatControl formatControl)
AbstractPushBufferCaptureDevice.createStream(int, FormatControl)
.createStream
in class AbstractPullBufferCaptureDevice
streamIndex
- the zero-based index of the PullBufferStream
in the list of streams of this PullBufferDataSourceformatControl
- the FormatControl which is to abstract the
Format-related information of the new instanceprotected javax.media.Format[] getSupportedFormats(int streamIndex)
getSupportedFormats
in class AbstractPullBufferCaptureDevice
streamIndex
- the zero-based index of the PullBufferStream
for which the specified FormatControl is to report the list of
supported Formats
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.