|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.protocol.DataSource
javax.media.protocol.PullBufferDataSource
net.java.sip.communicator.impl.neomedia.jmfext.media.protocol.AbstractPullBufferCaptureDevice
net.java.sip.communicator.impl.neomedia.jmfext.media.protocol.portaudio.DataSource
public class DataSource
Implements DataSource and CaptureDevice for PortAudio.
| Field Summary |
|---|
| Fields inherited from interface javax.media.Duration |
|---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
protected AbstractPullBufferStream |
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 int |
getDeviceIndex(javax.media.MediaLocator locator)
Gets the device index of a PortAudio 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. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.jmfext.media.protocol.AbstractPullBufferCaptureDevice |
|---|
connect, createFrameRateControl, disconnect, doStart, doStop, getCaptureDeviceInfo, getContentType, getControl, getControls, getDuration, getFormat, getFormatControls, getStreams, getStreamSyncRoot, setCaptureDeviceInfo, setFormat, start, stop, streams |
| Methods inherited from class javax.media.protocol.DataSource |
|---|
getLocator, initCheck, setLocator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSource()
public DataSource(javax.media.MediaLocator locator)
locator - the MediaLocator to create the new instance from
public 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 improvement| Method Detail |
|---|
protected AbstractPullBufferStream 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 instance
AbstractPullBufferCaptureDevice.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 int getDeviceIndex(javax.media.MediaLocator locator)
locator - the MediaLocator identifying the device index of
a PortAudio device to get
protected 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 Formats
AbstractPullBufferCaptureDevice.getSupportedFormats(int)
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||