|
Jitsi: 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.event.PropertyChangeNotifier
net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession
net.java.sip.communicator.impl.neomedia.device.AudioMediaDeviceSession
public class AudioMediaDeviceSession
Extends MediaDeviceSession to add audio-specific functionality.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession |
|---|
OUTPUT_DATA_SOURCE, outputsizeChanged, SSRC_LIST |
| Constructor Summary | |
|---|---|
protected |
AudioMediaDeviceSession(AbstractMediaDevice device)
Initializes a new MediaDeviceSession instance which is to represent the use of a specific MediaDevice by a MediaStream. |
| Method Summary | |
|---|---|
void |
copyPlayback(MediaDeviceSession deviceSession)
Copies the playback part of a specific MediaDeviceSession into this instance. |
int |
getLastMeasuredAudioLevel(long ssrc)
Returns the last audio level that was measured by this device session for the specified ssrc. |
int |
getLastMeasuredLocalUserAudioLevel()
Returns the last audio level that was measured by the underlying mixer for local user. |
protected void |
playerConfigureComplete(javax.media.Processor player)
Called by MediaDeviceSession.playerControllerUpdate(
ControllerEvent event) when the player associated with this session's
ReceiveStream moves enters the Configured state, so
we use the occasion to add our audio level effect. |
protected void |
processorControllerUpdate(javax.media.ControllerEvent event)
Gets notified about ControllerEvents generated by the processor reading our capture data source, calls the corresponding method from the parent class so that it would initialize the processor and then adds the level effect for the local user audio levels. |
protected void |
registerLocalUserAudioLevelEffect(javax.media.Processor processor)
Creates an audio level effect and add its to the codec chain of the TrackControl assuming that it only contains a single track. |
void |
setLocalUserAudioLevelListener(SimpleAudioLevelListener listener)
Sets the SimpleAudioLevelListener that this session should be notifying about changes in local audio level related information. |
void |
setStreamAudioLevelListener(SimpleAudioLevelListener listener)
Sets listener as the SimpleAudioLevelListener that we are going to notify every time a change occurs in the audio level of the media that this device session is receiving from the remote party. |
| Methods inherited from class net.java.sip.communicator.util.event.PropertyChangeNotifier |
|---|
addPropertyChangeListener, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AudioMediaDeviceSession(AbstractMediaDevice device)
device - the MediaDevice the use of which by a
MediaStream is to be represented by the new instance| Method Detail |
|---|
protected void playerConfigureComplete(javax.media.Processor player)
MediaDeviceSession.playerControllerUpdate(
ControllerEvent event) when the player associated with this session's
ReceiveStream moves enters the Configured state, so
we use the occasion to add our audio level effect.
playerConfigureComplete in class MediaDeviceSessionplayer - the Player which is the source of a
ConfigureCompleteEventMediaDeviceSession.playerConfigureComplete(Processor)protected void processorControllerUpdate(javax.media.ControllerEvent event)
processorControllerUpdate in class MediaDeviceSessionevent - the ControllerEvent specifying the
Controller which is the source of the event and the very type of
the eventprotected void registerLocalUserAudioLevelEffect(javax.media.Processor processor)
processor - the processor on which track control we need
to register a level effect with.public void setLocalUserAudioLevelListener(SimpleAudioLevelListener listener)
listener - the SimpleAudioLevelListener to addpublic void setStreamAudioLevelListener(SimpleAudioLevelListener listener)
listener - the SimpleAudioLevelListener that we want
notified for audio level changes in the remote participant's media.public int getLastMeasuredAudioLevel(long ssrc)
ssrc - the SSRC ID whose last measured audio level we'd like to
retrieve.
public int getLastMeasuredLocalUserAudioLevel()
public void copyPlayback(MediaDeviceSession deviceSession)
copyPlayback in class MediaDeviceSessiondeviceSession - the MediaDeviceSession to copy the playback
part of into this instance
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||