|
SIP Communicator: 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.util.PropertyChangeNotifier
net.java.sip.communicator.impl.media.device.DeviceConfiguration
public class DeviceConfiguration
This class aims to provide a simple configuration interface for JMF. It retrieves stored configuration when started or listens to ConfigurationEvent for property changes and configures the JMF accordingly.
| Field Summary | |
|---|---|
static String |
AUDIO_CAPTURE_DEVICE
The name of the DeviceConfiguration property which
represents the device used by DeviceConfiguration for audio
capture. |
static String |
AUDIO_NOTIFY_DEVICE
The name of the DeviceConfiguration property which
represents the device used by DeviceConfiguration for audio
notify. |
static String |
AUDIO_PLAYBACK_DEVICE
The name of the DeviceConfiguration property which
represents the device used by DeviceConfiguration for audio
playback. |
static String |
AUDIO_SYSTEM_JAVASOUND
JavaSound sound system. |
static String |
AUDIO_SYSTEM_NONE
When audio is disabled the selected audio system is with name None. |
static String |
AUDIO_SYSTEM_PORTAUDIO
PortAudio sound system. |
static String |
VIDEO_CAPTURE_DEVICE
The name of the DeviceConfiguration property which
represents the device used by DeviceConfiguration for video
capture. |
| Constructor Summary | |
|---|---|
DeviceConfiguration()
Default constructor. |
|
| Method Summary | |
|---|---|
static void |
addAudioSystem(String audioSystemName)
Adds audio system. |
javax.media.CaptureDeviceInfo |
getAudioCaptureDevice()
Returns a device that we could use for audio capture. |
javax.media.CaptureDeviceInfo |
getAudioNotifyDevice()
|
javax.media.CaptureDeviceInfo |
getAudioPlaybackDevice()
|
String |
getAudioSystem()
The current selected audio system. |
javax.media.CaptureDeviceInfo[] |
getAvailableAudioCaptureDevices()
Gets the list of audio capture devices which are available through this DeviceConfiguration, amongst which is
getAudioCaptureDevice() and represent acceptable values
for setAudioCaptureDevice(CaptureDeviceInfo) |
javax.media.CaptureDeviceInfo[] |
getAvailableAudioCaptureDevices(String soundSystem)
Gets the list of audio capture devices which are available through this DeviceConfiguration, amongst which is
getAudioCaptureDevice() and represent acceptable values
for setAudioCaptureDevice(CaptureDeviceInfo) |
javax.media.CaptureDeviceInfo[] |
getAvailableAudioPlaybackDevices()
Lists all the playback devices. |
String[] |
getAvailableAudioSystems()
Return the installed Audio Systems. |
javax.media.CaptureDeviceInfo[] |
getAvailableVideoCaptureDevices()
Gets the list of video capture devices which are available through this DeviceConfiguration, amongst which is
getVideoCaptureDevice() and represent acceptable values
for setVideoCaptureDevice(CaptureDeviceInfo) |
javax.media.CaptureDeviceInfo |
getVideoCaptureDevice()
Returns a device that we could use for video capture. |
void |
initialize()
Initializes capture devices. |
protected static void |
initPortAudioRenderer()
Installs the PortAudio Renderer |
boolean |
isAudioCaptureSupported()
Enable or disable Audio stream transmission. |
boolean |
isDenoiseEnabled()
Returns the state of noise suppression configuration. |
boolean |
isEchoCancelEnabled()
Returns the state of echo cancel configuration. |
boolean |
isVideoCaptureSupported()
Enable or disable Video stream transmission. |
void |
setAudioCaptureDevice(javax.media.CaptureDeviceInfo device)
Sets the device which is to be used by this DeviceConfiguration for audio capture. |
void |
setAudioNotifyDevice(javax.media.CaptureDeviceInfo audioNotifyDevice)
|
void |
setAudioPlaybackDevice(javax.media.CaptureDeviceInfo audioPlaybackDevice)
|
void |
setAudioSystem(String name,
javax.media.CaptureDeviceInfo captureDevice)
Changes the current audio system. |
void |
setDenoise(boolean enabled)
Change the state of noise suppression configuration |
void |
setEchoCancel(boolean enabled)
Change the state of echo cancel configuration |
void |
setVideoCaptureDevice(javax.media.CaptureDeviceInfo device)
Sets the device which is to be used by this DeviceConfiguration for video capture. |
| Methods inherited from class net.java.sip.communicator.util.PropertyChangeNotifier |
|---|
addPropertyChangeListener, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String AUDIO_CAPTURE_DEVICE
DeviceConfiguration property which
represents the device used by DeviceConfiguration for audio
capture.
public static final String AUDIO_PLAYBACK_DEVICE
DeviceConfiguration property which
represents the device used by DeviceConfiguration for audio
playback.
public static final String AUDIO_NOTIFY_DEVICE
DeviceConfiguration property which
represents the device used by DeviceConfiguration for audio
notify.
public static final String VIDEO_CAPTURE_DEVICE
DeviceConfiguration property which
represents the device used by DeviceConfiguration for video
capture.
public static final String AUDIO_SYSTEM_NONE
public static final String AUDIO_SYSTEM_JAVASOUND
public static final String AUDIO_SYSTEM_PORTAUDIO
| Constructor Detail |
|---|
public DeviceConfiguration()
| Method Detail |
|---|
public void initialize()
public javax.media.CaptureDeviceInfo getAudioCaptureDevice()
public javax.media.CaptureDeviceInfo[] getAvailableAudioCaptureDevices()
DeviceConfiguration, amongst which is
getAudioCaptureDevice() and represent acceptable values
for setAudioCaptureDevice(CaptureDeviceInfo)
CaptureDeviceInfo describing the audio
capture devices available through this
DeviceConfigurationpublic javax.media.CaptureDeviceInfo[] getAvailableAudioCaptureDevices(String soundSystem)
DeviceConfiguration, amongst which is
getAudioCaptureDevice() and represent acceptable values
for setAudioCaptureDevice(CaptureDeviceInfo)
soundSystem - filter capture devices only from the supplied audio system.
CaptureDeviceInfo describing the audio
capture devices available through this
DeviceConfigurationpublic javax.media.CaptureDeviceInfo[] getAvailableAudioPlaybackDevices()
public javax.media.CaptureDeviceInfo[] getAvailableVideoCaptureDevices()
DeviceConfiguration, amongst which is
getVideoCaptureDevice() and represent acceptable values
for setVideoCaptureDevice(CaptureDeviceInfo)
CaptureDeviceInfo describing the video
capture devices available through this
DeviceConfigurationpublic javax.media.CaptureDeviceInfo getVideoCaptureDevice()
public void setVideoCaptureDevice(javax.media.CaptureDeviceInfo device)
DeviceConfiguration for video capture.
device - a CaptureDeviceInfo describing device to be
used by this DeviceConfiguration for video
capturepublic void setAudioCaptureDevice(javax.media.CaptureDeviceInfo device)
DeviceConfiguration for audio capture.
device - a CaptureDeviceInfo describing the device to
be used by this DeviceConfiguration for audio
capturepublic boolean isAudioCaptureSupported()
public boolean isVideoCaptureSupported()
public String[] getAvailableAudioSystems()
public static void addAudioSystem(String audioSystemName)
audioSystemName - the name of the audio system.public String getAudioSystem()
public void setAudioSystem(String name,
javax.media.CaptureDeviceInfo captureDevice)
name - the name of the audio system.captureDevice - the selected capture device, if is null we will
choose a default one. Param used when first time initing and
extracting config.protected static void initPortAudioRenderer()
public javax.media.CaptureDeviceInfo getAudioPlaybackDevice()
public javax.media.CaptureDeviceInfo getAudioNotifyDevice()
public void setAudioPlaybackDevice(javax.media.CaptureDeviceInfo audioPlaybackDevice)
audioPlaybackDevice - the audioPlaybackDevice to setpublic void setAudioNotifyDevice(javax.media.CaptureDeviceInfo audioNotifyDevice)
audioNotifyDevice - the audioNotifyDevice to setpublic void setEchoCancel(boolean enabled)
enabled - true if enabledpublic void setDenoise(boolean enabled)
enabled - true if enabledpublic boolean isEchoCancelEnabled()
public boolean isDenoiseEnabled()
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||