public class DataSource extends AbstractPullBufferCaptureDevice
| Constructor and Description |
|---|
DataSource()
Initializes a new DataSource instance.
|
DataSource(javax.media.MediaLocator locator)
Initializes a new DataSource instance from a specific
MediaLocator.
|
DataSource(javax.media.MediaLocator locator,
javax.media.Format[] supportedFormats,
boolean audioQualityImprovement)
Initializes a new DataSource instance from a specific
MediaLocator and which has a specific list of Format
in which it is capable of capturing audio data overriding its
registration with JMF and optionally uses audio quality improvement in
accord with the preferences of the user.
|
| Modifier and Type | Method and Description |
|---|---|
protected MacCoreaudioStream |
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.
|
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.
|
static String |
getDeviceID(javax.media.MediaLocator locator)
Gets the device index of a MacCoreaudio device from a specific
MediaLocator identifying it.
|
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.
|
connect, createFrameRateControl, disconnect, doStart, doStop, getCaptureDeviceInfo, getContentType, getControl, getControls, getDuration, getFormat, getFormatControls, getStreams, getStreamSyncRoot, setCaptureDeviceInfo, setFormat, start, stop, streamspublic DataSource()
public DataSource(javax.media.MediaLocator locator)
locator - the MediaLocator to create the new instance frompublic DataSource(javax.media.MediaLocator locator,
javax.media.Format[] supportedFormats,
boolean audioQualityImprovement)
locator - the MediaLocator to create the new instance fromsupportedFormats - the list of Formats in which the new
instance is to be capable of capturing audio dataaudioQualityImprovement - true if audio quality improvement
is to be enabled in accord with the preferences of the user or
false to completely disable audio quality improvementprotected MacCoreaudioStream createStream(int streamIndex, javax.media.control.FormatControl formatControl)
createStream in class AbstractPullBufferCaptureDevicestreamIndex - 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 instanceAbstractPullBufferCaptureDevice.createStream(int, FormatControl)protected void doConnect()
throws IOException
doConnect in class AbstractPullBufferCaptureDeviceIOException - if anything goes wrong while opening the connection
to the media source specified by the MediaLocator of this
DataSourceAbstractPullBufferCaptureDevice.doConnect()protected void doDisconnect()
doDisconnect in class AbstractPullBufferCaptureDevicepublic static String getDeviceID(javax.media.MediaLocator locator)
locator - the MediaLocator identifying the device index of
a MacCoreaudio device to getprotected javax.media.Format[] getSupportedFormats(int streamIndex)
getSupportedFormats in class AbstractPullBufferCaptureDevicestreamIndex - the zero-based index of the PullBufferStream
for which the specified FormatControl is to report the list of
supported FormatsAbstractPullBufferCaptureDevice.getSupportedFormats(int)Copyright © 2022 jitsi.org. All rights reserved.