Class: SrtpSession
#
HierarchySession
<SrtpContext>↳ SrtpSession
#
Constructors#
constructor• new SrtpSession(config
)
#
ParametersName | Type |
---|---|
config | Config |
#
OverridesSession<SrtpContext\>.constructor
#
Defined inpackages/rtp/src/srtp/srtp.ts:5
#
Properties#
config• config: Config
#
localContext• localContext: SrtpContext
#
Inherited fromSession.localContext
#
Defined inpackages/rtp/src/srtp/session.ts:16
#
onData• Optional
onData: (buf
: Buffer
) => void
#
Type declaration▸ (buf
): void
#
ParametersName | Type |
---|---|
buf | Buffer |
#
Returnsvoid
#
Inherited fromSession.onData
#
Defined inpackages/rtp/src/srtp/session.ts:18
#
remoteContext• remoteContext: SrtpContext
#
Inherited fromSession.remoteContext
#
Defined inpackages/rtp/src/srtp/session.ts:17
#
Methods#
decrypt▸ decrypt(buf
): Buffer
#
ParametersName | Type |
---|---|
buf | Buffer |
#
ReturnsBuffer
#
Defined inpackages/rtp/src/srtp/srtp.ts:17
#
encrypt▸ encrypt(payload
, header
): Buffer
#
ParametersName | Type |
---|---|
payload | Buffer |
header | RtpHeader |
#
ReturnsBuffer
#
Defined inpackages/rtp/src/srtp/srtp.ts:22
#
start▸ start(localMasterKey
, localMasterSalt
, remoteMasterKey
, remoteMasterSalt
, profile
): void
#
ParametersName | Type |
---|---|
localMasterKey | Buffer |
localMasterSalt | Buffer |
remoteMasterKey | Buffer |
remoteMasterSalt | Buffer |
profile | number |
#
Returnsvoid
#
Inherited fromSession.start