public abstract class Devices
extends java.lang.Object
Constructor and Description |
---|
Devices(AudioSystem audioSystem)
Initializes the device list management.
|
Modifier and Type | Method and Description |
---|---|
CaptureDeviceInfo2 |
getDevice(javax.media.MediaLocator locator)
Gets a CapatureDeviceInfo2 which is known to this instance and
is identified by a specific MediaLocator.
|
java.util.List<CaptureDeviceInfo2> |
getDevices()
Returns the list of the CaptureDeviceInfo2s which are
active/plugged-in.
|
protected abstract java.lang.String |
getPropDevice()
Returns the property of the capture devices.
|
CaptureDeviceInfo2 |
getSelectedDevice(java.util.List<CaptureDeviceInfo2> activeDevices)
Gets the selected active device.
|
void |
setDevice(CaptureDeviceInfo2 device,
boolean save)
Selects the active device.
|
void |
setDevices(java.util.List<CaptureDeviceInfo2> devices)
Sets the list of CaptureDeviceInfo2s which are
active/plugged-in.
|
public Devices(AudioSystem audioSystem)
audioSystem
- The audio system managing this device list.public CaptureDeviceInfo2 getDevice(javax.media.MediaLocator locator)
locator
- the MediaLocator of the
CaptureDeviceInfo2 to be returnedpublic java.util.List<CaptureDeviceInfo2> getDevices()
protected abstract java.lang.String getPropDevice()
public CaptureDeviceInfo2 getSelectedDevice(java.util.List<CaptureDeviceInfo2> activeDevices)
activeDevices
- the list of the active devicespublic void setDevice(CaptureDeviceInfo2 device, boolean save)
device
- the selected active devicesave
- true to save the choice in the configuration;
false, otherwisepublic void setDevices(java.util.List<CaptureDeviceInfo2> devices)
devices
- the list of CaptureDeviceInfo2s which are
active/plugged-in
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.