public class DataSource extends AbstractPushBufferCaptureDevice
| Constructor and Description |
|---|
DataSource()
Initializes a new DataSource instance.
|
DataSource(javax.media.MediaLocator locator)
Initializes a new DataSource instance with a specific
MediaLocator.
|
| Modifier and Type | Method and Description |
|---|---|
protected WASAPIStream |
createStream(int streamIndex,
javax.media.control.FormatControl formatControl)
Create a new PushBufferStream which is to be at a specific
zero-based index in the list of streams of this
PushBufferDataSource.
|
protected void |
doConnect()
Opens a connection to the media source specified by the
MediaLocator of this DataSource.
|
protected void |
doDisconnect()
Closes the connection to the media source specified by the
MediaLocator of this DataSource.
|
protected javax.media.Format[] |
getSupportedFormats(int streamIndex)
Gets the Formats which are to be reported by a
FormatControl as supported formats for a
PushBufferStream at a specific zero-based index in the list of
streams of this PushBufferDataSource.
|
connect, createFrameRateControl, disconnect, doStart, doStop, getCaptureDeviceInfo, getContentType, getControl, getControls, getDuration, getFormat, getFormatControls, getStreams, getStreamSyncRoot, setFormat, start, stop, streamspublic DataSource()
public DataSource(javax.media.MediaLocator locator)
locator - the MediaLocator to initialize the new instance
withprotected WASAPIStream createStream(int streamIndex, javax.media.control.FormatControl formatControl)
createStream in class AbstractPushBufferCaptureDevicestreamIndex - the zero-based index of the PushBufferStream
in the list of streams of this PushBufferDataSourceformatControl - the FormatControl which is to abstract the
Format-related information of the new instanceprotected void doConnect()
throws IOException
doConnect in class AbstractPushBufferCaptureDeviceIOException - if anything goes wrong while opening the connection
to the media source specified by the MediaLocator of this
DataSourceprotected void doDisconnect()
doDisconnect in class AbstractPushBufferCaptureDeviceprotected javax.media.Format[] getSupportedFormats(int streamIndex)
getSupportedFormats in class AbstractPushBufferCaptureDevicestreamIndex - the zero-based index of the PushBufferStream
for which the specified FormatControl is to report the list of
supported FormatsCopyright © 2021 jitsi.org. All rights reserved.