Package javaforce.voip
Class SRTPChannel
java.lang.Object
javaforce.voip.RTPChannel
javaforce.voip.SRTPChannel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanprotected voidprocessDTLS(byte[] data, int off, int len) protected voidprocessRTP(byte[] data, int off, int len) protected voidprocessSTUN(byte[] data, int off, int len) voidEnables DTLS mode (otherwise you MUST call setServerKeys() AND setClientKeys() before calling start()).voidsetLocalKeys(byte[] key, byte[] salt) Sets keys found in SDP used on this side of SRTP (not used in DTLS mode)voidsetRemoteKeys(byte[] key, byte[] salt) Sets keys found in SDP used on other side of SRTP (not used in DTLS mode)booleanstart()voidwriteRTP(byte[] data, int off, int len) Writes a packet to the RTP port.Methods inherited from class javaforce.voip.RTPChannel
buildHeader, buildHeader, change, getH263_1998id, getH263_2000id, getH264id, getH265id, getremoteip, getremoteport, getRFC2833id, getSamples, getseqnum, getseqnum, getssrc, getssrc, gettimestamp, gettimestamp, getVP8id, getVP9id, isActive, keepalive, processRTCP, setLog, setSpeexEnhancedMode, setSpeexQuality, stop, toString, writeDTMF, writeRTCP
-
Field Details
-
_roc
protected long _roc -
_s_l
protected int _s_l
-
-
Constructor Details
-
SRTPChannel
-
-
Method Details
-
writeRTP
public void writeRTP(byte[] data, int off, int len) Description copied from class:RTPChannelWrites a packet to the RTP port.- Overrides:
writeRTPin classRTPChannel
-
setLocalKeys
public void setLocalKeys(byte[] key, byte[] salt) Sets keys found in SDP used on this side of SRTP (not used in DTLS mode) -
setRemoteKeys
public void setRemoteKeys(byte[] key, byte[] salt) Sets keys found in SDP used on other side of SRTP (not used in DTLS mode) -
setDTLS
Enables DTLS mode (otherwise you MUST call setServerKeys() AND setClientKeys() before calling start()). -
start
public boolean start()- Overrides:
startin classRTPChannel
-
processSTUN
protected void processSTUN(byte[] data, int off, int len) -
initDTLS
-
processDTLS
protected void processDTLS(byte[] data, int off, int len) -
processRTP
protected void processRTP(byte[] data, int off, int len) - Overrides:
processRTPin classRTPChannel
-