Skip to main content

Class: SrtcpSession

Hierarchy#

  • Session<SrtcpContext>

    SrtcpSession

Constructors#

constructor#

new SrtcpSession(config)

Parameters#

NameType
configConfig

Overrides#

Session<SrtcpContext\>.constructor

Defined in#

packages/rtp/src/srtp/srtcp.ts:4

Properties#

config#

config: Config


localContext#

localContext: SrtcpContext

Inherited from#

Session.localContext

Defined in#

packages/rtp/src/srtp/session.ts:16


onData#

Optional onData: (buf: Buffer) => void

Type declaration#

▸ (buf): void

Parameters#
NameType
bufBuffer
Returns#

void

Inherited from#

Session.onData

Defined in#

packages/rtp/src/srtp/session.ts:18


remoteContext#

remoteContext: SrtcpContext

Inherited from#

Session.remoteContext

Defined in#

packages/rtp/src/srtp/session.ts:17

Methods#

decrypt#

decrypt(buf): Buffer

Parameters#

NameType
bufBuffer

Returns#

Buffer

Defined in#

packages/rtp/src/srtp/srtcp.ts:17


encrypt#

encrypt(rawRtcp): Buffer

Parameters#

NameType
rawRtcpBuffer

Returns#

Buffer

Defined in#

packages/rtp/src/srtp/srtcp.ts:22


start#

start(localMasterKey, localMasterSalt, remoteMasterKey, remoteMasterSalt, profile): void

Parameters#

NameType
localMasterKeyBuffer
localMasterSaltBuffer
remoteMasterKeyBuffer
remoteMasterSaltBuffer
profilenumber

Returns#

void

Inherited from#

Session.start

Defined in#

packages/rtp/src/srtp/session.ts:22