public class SoundLevelChangeEvent
extends java.util.EventObject
In the case of a CallPeer, which is also a conference focus and is participating in the conference as a ConferenceMember the level would be the aggregated level of all ConferenceMembers levels including the one corresponding to the peer itself.
In the case of a CallPeer, which is also a conference focus, but is NOT participating in the conference as a ConferenceMember (server) the level would be the aggregated level of all attached ConferenceMembers.
Modifier and Type | Field and Description |
---|---|
static int |
MAX_LEVEL
The maximum level that can be reported for a participant.
|
static int |
MIN_LEVEL
The maximum (zero) level that can be reported for a participant.
|
Constructor and Description |
---|
SoundLevelChangeEvent(java.lang.Object source,
int level)
Creates an StreamSoundLevelEvent for the given callPeer
by indicating the current sound level of the audio stream.
|
Modifier and Type | Method and Description |
---|---|
int |
getLevel()
Returns the current sound level of the audio stream.
|
public static final int MAX_LEVEL
MIN_LEVEL
in
a way that would appear uniform to users.
Warning: The value should be equal to net.java.sip.communicator.service.neomedia.event.SimpleAudioLevelListener#MAX_VALUE because we do not currently perform a conversion from the SimpleAudioLevelListener range to the SoundLevelChangeEvent range when we fire the event.
public static final int MIN_LEVEL
MAX_LEVEL
and
MIN_LEVEL in a way that would appear uniform to users.
Warning: The value should be equal to net.java.sip.communicator.service.neomedia.event.SimpleAudioLevelListener#MIN_VALUE because we do not currently perform a conversion from the SimpleAudioLevelListener range to the SoundLevelChangeEvent range when we fire the event.
public SoundLevelChangeEvent(java.lang.Object source, int level)
source
- the source from which the change is receivedlevel
- the current sound level of the audio stream
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.