Class: RTCDtlsTransport
#
Constructors#
constructor• new RTCDtlsTransport(iceTransport
, router
, certificates
, srtpProfiles?
)
#
ParametersName | Type | Default value |
---|---|---|
iceTransport | RTCIceTransport | undefined |
router | RtpRouter | undefined |
certificates | RTCCertificate[] | undefined |
srtpProfiles | number [] | [] |
#
Defined inpackages/webrtc/src/transport/dtls.ts:46
#
Properties#
certificates• Readonly
certificates: RTCCertificate[]
#
dataReceiver• dataReceiver: (buf
: Buffer
) => void
#
Type declaration▸ (buf
): void
#
ParametersName | Type |
---|---|
buf | Buffer |
#
Returnsvoid
#
Defined inpackages/webrtc/src/transport/dtls.ts:39
#
dtls• Optional
dtls: DtlsSocket
#
Defined inpackages/webrtc/src/transport/dtls.ts:40
#
iceTransport• Readonly
iceTransport: RTCIceTransport
#
localCertificate• Private
Optional
localCertificate: RTCCertificate
#
Defined inpackages/webrtc/src/transport/dtls.ts:46
#
onStateChange• Readonly
onStateChange: default
<["closed"
| "connecting"
| "failed"
| "new"
| "connected"
]>
#
Defined inpackages/webrtc/src/transport/dtls.ts:44
#
role• role: DtlsRole = "auto"
#
Defined inpackages/webrtc/src/transport/dtls.ts:35
#
router• Readonly
router: RtpRouter
#
srtcp• srtcp: SrtcpSession
#
Defined inpackages/webrtc/src/transport/dtls.ts:42
#
srtp• srtp: SrtpSession
#
Defined inpackages/webrtc/src/transport/dtls.ts:41
#
srtpStarted• srtpStarted: boolean
= false
#
Defined inpackages/webrtc/src/transport/dtls.ts:36
#
state• state: "closed"
| "connecting"
| "failed"
| "new"
| "connected"
= "new"
#
Defined inpackages/webrtc/src/transport/dtls.ts:34
#
transportSequenceNumber• transportSequenceNumber: number
= 0
#
Defined inpackages/webrtc/src/transport/dtls.ts:37
#
Accessors#
localParameters• get
localParameters(): RTCDtlsParameters
#
Returns#
Defined inpackages/webrtc/src/transport/dtls.ts:55
#
Methods#
sendData▸ Readonly
sendData(data
): Promise
<void>
#
ParametersName | Type |
---|---|
data | Buffer |
#
ReturnsPromise
<void>
#
Defined inpackages/webrtc/src/transport/dtls.ts:170
#
sendRtcp▸ sendRtcp(packets
): Promise
<void>
#
ParametersName | Type |
---|---|
packets | RtcpPacket[] |
#
ReturnsPromise
<void>
#
Defined inpackages/webrtc/src/transport/dtls.ts:181
#
sendRtp▸ sendRtp(payload
, header
): number
#
ParametersName | Type |
---|---|
payload | Buffer |
header | RtpHeader |
#
Returnsnumber
#
Defined inpackages/webrtc/src/transport/dtls.ts:175
#
setState▸ Private
setState(state
): void
#
ParametersName | Type |
---|---|
state | "closed" | "connecting" | "failed" | "new" | "connected" |
#
Returnsvoid
#
Defined inpackages/webrtc/src/transport/dtls.ts:191
#
setupCertificate▸ setupCertificate(): Promise
<void>
#
ReturnsPromise
<void>
#
Defined inpackages/webrtc/src/transport/dtls.ts:62
#
start▸ start(remoteParameters
): Promise
<void>
#
ParametersName | Type |
---|---|
remoteParameters | RTCDtlsParameters |
#
ReturnsPromise
<void>
#
Defined inpackages/webrtc/src/transport/dtls.ts:80
#
startSrtp▸ startSrtp(): void
#
Returnsvoid
#
Defined inpackages/webrtc/src/transport/dtls.ts:135
#
stop▸ stop(): Promise
<void>
#
ReturnsPromise
<void>