public interface VolumeControl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAPTURE_VOLUME_LEVEL_PROPERTY_NAME
The name of the configuration property which specifies the volume level
of audio input.
|
static java.lang.String |
PLAYBACK_VOLUME_LEVEL_PROPERTY_NAME
The name of the configuration property which specifies the volume level
of audio output.
|
Modifier and Type | Method and Description |
---|---|
void |
addVolumeChangeListener(VolumeChangeListener listener)
Adds a VolumeChangeListener to be informed about changes in the
volume level of this instance.
|
float |
getMaxValue()
Returns the maximum allowed volume value/level.
|
float |
getMinValue()
Returns the minimum allowed volume value/level.
|
boolean |
getMute()
Get mute state of sound playback.
|
float |
getVolume()
Gets the current volume value/level.
|
void |
removeVolumeChangeListener(VolumeChangeListener listener)
Removes a VolumeChangeListener to no longer be notified about
changes in the volume level of this instance.
|
void |
setMute(boolean mute)
Mutes current sound playback.
|
float |
setVolume(float value)
Sets the current volume value/level.
|
static final java.lang.String CAPTURE_VOLUME_LEVEL_PROPERTY_NAME
static final java.lang.String PLAYBACK_VOLUME_LEVEL_PROPERTY_NAME
void addVolumeChangeListener(VolumeChangeListener listener)
listener
- the VolumeChangeListener to be informed about
changes in the volume level of this instancefloat getMaxValue()
float getMinValue()
boolean getMute()
float getVolume()
void removeVolumeChangeListener(VolumeChangeListener listener)
listener
- the VolumeChangeListener to no longer be
notified about changes in the volume level of this instancevoid setMute(boolean mute)
mute
- mutes/unmutes playback.float setVolume(float value)
value
- the volume value/level to set on this instance
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.