Skip to main content

Class: RTCDtlsTransport

Constructors#

constructor#

new RTCDtlsTransport(iceTransport, router, certificates, srtpProfiles?)

Parameters#

NameTypeDefault value
iceTransportRTCIceTransportundefined
routerRtpRouterundefined
certificatesRTCCertificate[]undefined
srtpProfilesnumber[][]

Defined in#

packages/webrtc/src/transport/dtls.ts:46

Properties#

certificates#

Readonly certificates: RTCCertificate[]


dataReceiver#

dataReceiver: (buf: Buffer) => void

Type declaration#

▸ (buf): void

Parameters#
NameType
bufBuffer
Returns#

void

Defined in#

packages/webrtc/src/transport/dtls.ts:39


dtls#

Optional dtls: DtlsSocket

Defined in#

packages/webrtc/src/transport/dtls.ts:40


iceTransport#

Readonly iceTransport: RTCIceTransport


localCertificate#

Private Optional localCertificate: RTCCertificate

Defined in#

packages/webrtc/src/transport/dtls.ts:46


onStateChange#

Readonly onStateChange: default<["closed" | "connecting" | "failed" | "new" | "connected"]>

Defined in#

packages/webrtc/src/transport/dtls.ts:44


role#

role: DtlsRole = "auto"

Defined in#

packages/webrtc/src/transport/dtls.ts:35


router#

Readonly router: RtpRouter


srtcp#

srtcp: SrtcpSession

Defined in#

packages/webrtc/src/transport/dtls.ts:42


srtp#

srtp: SrtpSession

Defined in#

packages/webrtc/src/transport/dtls.ts:41


srtpStarted#

srtpStarted: boolean = false

Defined in#

packages/webrtc/src/transport/dtls.ts:36


state#

state: "closed" | "connecting" | "failed" | "new" | "connected" = "new"

Defined in#

packages/webrtc/src/transport/dtls.ts:34


transportSequenceNumber#

transportSequenceNumber: number = 0

Defined in#

packages/webrtc/src/transport/dtls.ts:37

Accessors#

localParameters#

get localParameters(): RTCDtlsParameters

Returns#

RTCDtlsParameters

Defined in#

packages/webrtc/src/transport/dtls.ts:55

Methods#

sendData#

Readonly sendData(data): Promise<void>

Parameters#

NameType
dataBuffer

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/dtls.ts:170


sendRtcp#

sendRtcp(packets): Promise<void>

Parameters#

NameType
packetsRtcpPacket[]

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/dtls.ts:181


sendRtp#

sendRtp(payload, header): number

Parameters#

NameType
payloadBuffer
headerRtpHeader

Returns#

number

Defined in#

packages/webrtc/src/transport/dtls.ts:175


setState#

Private setState(state): void

Parameters#

NameType
state"closed" | "connecting" | "failed" | "new" | "connected"

Returns#

void

Defined in#

packages/webrtc/src/transport/dtls.ts:191


setupCertificate#

setupCertificate(): Promise<void>

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/dtls.ts:62


start#

start(remoteParameters): Promise<void>

Parameters#

NameType
remoteParametersRTCDtlsParameters

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/dtls.ts:80


startSrtp#

startSrtp(): void

Returns#

void

Defined in#

packages/webrtc/src/transport/dtls.ts:135


stop#

stop(): Promise<void>

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/dtls.ts:198