|
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.Objectnet.java.sip.communicator.impl.neomedia.device.AbstractMediaDevice
net.java.sip.communicator.impl.neomedia.device.AudioMixerMediaDevice
public class AudioMixerMediaDevice
Implements a MediaDevice which performs audio mixing using
AudioMixer.
| Constructor Summary | |
|---|---|
AudioMixerMediaDevice(AudioMediaDeviceImpl device)
Initializes a new AudioMixerMediaDevice instance which is to enable audio mixing on a specific AudioMediaDeviceImpl. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this MediaDevice and removes all of the MediaDeviceSession of its AudioMixerMediaDeviceSession. |
void |
connect(javax.media.protocol.DataSource captureDevice)
Connects to a specific CaptureDevice given in the form of a DataSource. |
AudioMixingPushBufferDataSource |
createOutputDataSource()
Creates a DataSource instance for this MediaDevice which gives access to the captured media. |
MediaDeviceSession |
createSession()
Creates a new MediaDeviceSession instance which is to represent the use of this MediaDevice by a MediaStream. |
MediaDirection |
getDirection()
Returns the MediaDirection supported by this device. |
MediaFormat |
getFormat()
Gets the MediaFormat in which this |
MediaType |
getMediaType()
Gets the MediaType that this device supports. |
List<RTPExtension> |
getSupportedExtensions()
Returns a List containing (at the time of writing) a single extension descriptor indicating SENDRECV for mixer-to-client audio levels. |
List<MediaFormat> |
getSupportedFormats(QualityPreset sendPreset,
QualityPreset receivePreset)
Gets the list of MediaFormats supported by this MediaDevice. |
(package private) void |
removeInputDataSources(DataSourceFilter dataSourceFilter)
Removes the DataSource accepted by a specific DataSourceFilter from the list of input DataSource of the AudioMixer of this AudioMixerMediaDevice from which it reads audio to be mixed. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.device.AbstractMediaDevice |
|---|
getSession, getSupportedFormats |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AudioMixerMediaDevice(AudioMediaDeviceImpl device)
device - the AudioMediaDeviceImpl which the new instance is
to enable audio mixing on| Method Detail |
|---|
public void close()
close in class AbstractMediaDevice
public void connect(javax.media.protocol.DataSource captureDevice)
throws IOException
connect in class AbstractMediaDevicecaptureDevice - the CaptureDevice to be connected to
IOException - if anything wrong happens while connecting to the
specified captureDeviceAbstractMediaDevice.connect(DataSource)public AudioMixingPushBufferDataSource createOutputDataSource()
createOutputDataSource in class AbstractMediaDeviceAbstractMediaDevice.createOutputDataSource()public MediaDeviceSession createSession()
createSession in class AbstractMediaDeviceAbstractMediaDevice.createSession()public MediaDirection getDirection()
MediaDirection.SENDONLY if this is a read-only device,
MediaDirection.RECVONLY if this is a write-only device or
MediaDirection.SENDRECV if this MediaDevice can both
capture and render mediaMediaDevice.getDirection()public MediaFormat getFormat()
MediaDevice.getFormat()public MediaType getMediaType()
MediaType.AUDIO if this is an audio device or
MediaType.VIDEO if this is a video deviceMediaDevice.getMediaType()public List<RTPExtension> getSupportedExtensions()
getSupportedExtensions in interface MediaDevicegetSupportedExtensions in class AbstractMediaDevice
public List<MediaFormat> getSupportedFormats(QualityPreset sendPreset,
QualityPreset receivePreset)
sendPreset - not usedreceivePreset - not used
MediaDevice.getSupportedFormats()void removeInputDataSources(DataSourceFilter dataSourceFilter)
dataSourceFilter - the DataSourceFilter which selects the
DataSources to be removed
|
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 | |||||||||