|
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.impl.neomedia.transform.dtmf.DtmfTransformEngine
public class DtmfTransformEngine
The class is responsible for sending DTMF tones in an RTP audio stream as described by RFC4733.
| Constructor Summary | |
|---|---|
DtmfTransformEngine(AudioMediaStreamImpl stream)
Creates an engine instance that will be replacing audio packets with DTMF ones upon request. |
|
| Method Summary | |
|---|---|
void |
close()
Close the transformer and underlying transform engine. |
PacketTransformer |
getRTCPTransformer()
Always returns null since this engine does not require any RTCP transformations. |
PacketTransformer |
getRTPTransformer()
Returns a reference to this class since it is performing RTP transformations in here. |
RawPacket |
reverseTransform(RawPacket pkt)
A stub meant to handle incoming DTMF packets. |
void |
startSending(DTMFRtpTone tone)
DTMF sending stub: this is where we should set the transformer in the proper state so that it would start replacing packets with dtmf codes. |
void |
stop()
Stops threads that this transform engine is using for even delivery. |
void |
stopSendingDTMF()
Interrupts transmission of a DTMFRtpTone started with the startSendingDTMF() method. |
RawPacket |
transform(RawPacket pkt)
Replaces pkt with a DTMF packet if this engine is in a DTMF transmission mode or returns it unchanged otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DtmfTransformEngine(AudioMediaStreamImpl stream)
stream - the AudioMediaStream whose RTP packets we are
going to be replacing with DTMF.| Method Detail |
|---|
public void close()
close in interface PacketTransformerpublic PacketTransformer getRTCPTransformer()
getRTCPTransformer in interface TransformEnginepublic PacketTransformer getRTPTransformer()
getRTPTransformer in interface TransformEnginepublic RawPacket reverseTransform(RawPacket pkt)
reverseTransform in interface PacketTransformerpkt - an incoming packet that we need to parse and handle in case
we determine it to be DTMF.
public RawPacket transform(RawPacket pkt)
transform in interface PacketTransformerpkt - the audio packet that we may want to replace with a DTMF one.
public void startSending(DTMFRtpTone tone)
tone - the tone that we'd like to start sending.public void stopSendingDTMF()
AudioMediaStream.stopSendingDTMF(DTMFMethod dtmfMethod)public void stop()
|
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 | |||||||||