メインコンテンツまでスキップ

Class: SrtpSession

Hierarchy#

  • Session<SrtpContext>

    SrtpSession

Constructors#

constructor#

new SrtpSession(config)

Parameters#

NameType
configConfig

Overrides#

Session<SrtpContext\>.constructor

Defined in#

packages/rtp/src/srtp/srtp.ts:5

Properties#

config#

config: Config


localContext#

localContext: SrtpContext

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: SrtpContext

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/srtp.ts:17


encrypt#

encrypt(payload, header): Buffer

Parameters#

NameType
payloadBuffer
headerRtpHeader

Returns#

Buffer

Defined in#

packages/rtp/src/srtp/srtp.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