Class: SrtcpSession
#
HierarchySession
<SrtcpContext>↳ SrtcpSession
#
Constructors#
constructor• new SrtcpSession(config
)
#
ParametersName | Type |
---|---|
config | Config |
#
OverridesSession<SrtcpContext\>.constructor
#
Defined inpackages/rtp/src/srtp/srtcp.ts:4
#
Properties#
config• config: Config
#
localContext• localContext: SrtcpContext
#
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: SrtcpContext
#
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/srtcp.ts:17
#
encrypt▸ encrypt(rawRtcp
): Buffer
#
ParametersName | Type |
---|---|
rawRtcp | Buffer |
#
ReturnsBuffer
#
Defined inpackages/rtp/src/srtp/srtcp.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