public interface AudioMediaStream extends MediaStream
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISABLE_DTMF_HANDLING_PNAME
The name of the property which controls whether handling of RFC4733
DTMF packets should be disabled or enabled.
|
PNAME_LOCAL_SSRC, PNAME_REMOTE_SSRC
Modifier and Type | Method and Description |
---|---|
void |
addDTMFListener(DTMFListener listener)
Registers a listener that would receive notification events if the
remote party starts sending DTMF tones to us.
|
void |
removeDTMFListener(DTMFListener listener)
Removes listener from the list of DTMFListeners
registered to receive events for incoming DTMF tones.
|
void |
setCsrcAudioLevelListener(CsrcAudioLevelListener listener)
Registers listener as the CsrcAudioLevelListener that
will receive notifications for changes in the levels of conference
participants that the remote party could be mixing.
|
void |
setLocalUserAudioLevelListener(SimpleAudioLevelListener listener)
Sets listener as the SimpleAudioLevelListener
registered to receive notifications for changes in the levels of the
audio that this stream is sending out.
|
void |
setOutputVolumeControl(VolumeControl outputVolumeControl)
Sets the VolumeControl which is to control the volume (level)
of the audio received in/by this AudioMediaStream and played
back.
|
void |
setStreamAudioLevelListener(SimpleAudioLevelListener listener)
Sets listener as the SimpleAudioLevelListener
registered to receive notifications for changes in the levels of the
party that's at the other end of this stream.
|
void |
startSendingDTMF(DTMFTone tone,
DTMFMethod dtmfMethod,
int minimalToneDuration,
int maximalToneDuration,
int volume)
Starts sending the specified DTMFTone until the
stopSendingDTMF() method is called (Excepts for INBAND DTMF,
which stops by itself this is why where there is no need to call the
stopSendingDTMF).
|
void |
stopSendingDTMF(DTMFMethod dtmfMethod)
Interrupts transmission of a DTMFTone started with the
startSendingDTMF method.
|
addDynamicRTPPayloadType, addDynamicRTPPayloadTypeOverride, addPropertyChangeListener, addRTPExtension, clearDynamicRTPPayloadTypes, clearRTPExtensions, close, getActiveRTPExtensions, getDevice, getDirection, getDynamicRTPPayloadType, getDynamicRTPPayloadTypes, getFormat, getFormat, getLocalSourceID, getMediaStreamStats, getMediaStreamTrackReceiver, getName, getPrimaryREDBlock, getPrimaryREDBlock, getProperty, getRemoteControlAddress, getRemoteDataAddress, getRemoteSourceID, getRemoteSourceIDs, getRetransmissionRequester, getRTPTranslator, getSrtpControl, getStreamRTPManager, getTarget, getTransformEngineChain, getTransportProtocol, injectPacket, isKeyFrame, isKeyFrame, isMute, isStarted, removePropertyChangeListener, removeReceiveStreamForSsrc, setConnector, setDevice, setDirection, setExternalTransformer, setFormat, setMute, setName, setProperty, setRTPTranslator, setSSRCFactory, setTarget, setTransportCCEngine, start, stop
static final java.lang.String DISABLE_DTMF_HANDLING_PNAME
void addDTMFListener(DTMFListener listener)
listener
- the DTMFListener that we'd like to register.void removeDTMFListener(DTMFListener listener)
listener
- the listener that we'd like to unregistervoid setCsrcAudioLevelListener(CsrcAudioLevelListener listener)
listener
- the CsrcAudioLevelListener that we'd like to
register or null if we'd like to stop receiving notifications.void setLocalUserAudioLevelListener(SimpleAudioLevelListener listener)
listener
- the SimpleAudioLevelListener that we'd like to
register or null if we want to stop local audio level
measurements.void setOutputVolumeControl(VolumeControl outputVolumeControl)
outputVolumeControl
- the VolumeControl which is to control
the volume (level) of the audio received in this
AudioMediaStream and played backvoid setStreamAudioLevelListener(SimpleAudioLevelListener listener)
listener
- the SimpleAudioLevelListener that we'd like to
register or null if we want to stop stream audio level
measurements.void startSendingDTMF(DTMFTone tone, DTMFMethod dtmfMethod, int minimalToneDuration, int maximalToneDuration, int volume)
tone
- the DTMFTone to start sending.dtmfMethod
- The kind of DTMF used (RTP, SIP-INOF or INBAND).minimalToneDuration
- The minimal DTMF tone duration.maximalToneDuration
- The maximal DTMF tone duration.volume
- The DTMF tone volume. Describes the power level of the
tone, expressed in dBm0 after dropping the sign.void stopSendingDTMF(DTMFMethod dtmfMethod)
dtmfMethod
- the DTMFMethod to stop sending.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.