public abstract class Devices extends 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.
|
List<CaptureDeviceInfo2> |
getDevices()
Returns the list of the CaptureDeviceInfo2s which are
active/plugged-in.
|
protected abstract String |
getPropDevice()
Returns the property of the capture devices.
|
CaptureDeviceInfo2 |
getSelectedDevice(List<CaptureDeviceInfo2> activeDevices)
Gets the selected active device.
|
void |
setDevice(CaptureDeviceInfo2 device,
boolean save)
Selects the active device.
|
void |
setDevices(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 List<CaptureDeviceInfo2> getDevices()
protected abstract String getPropDevice()
public CaptureDeviceInfo2 getSelectedDevice(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(List<CaptureDeviceInfo2> devices)
devices - the list of CaptureDeviceInfo2s which are
active/plugged-inCopyright © 2022 jitsi.org. All rights reserved.