Class: RTCIceTransport
#
Constructors#
constructor• new RTCIceTransport(gather
)
#
ParametersName | Type |
---|---|
gather | RTCIceGatherer |
#
Defined inpackages/webrtc/src/transport/ice.ts:12
#
Properties#
connection• connection: Connection
#
Defined inpackages/webrtc/src/transport/ice.ts:7
#
onStateChange• Readonly
onStateChange: default
<["closed"
| "failed"
| "disconnected"
| "new"
| "connected"
| "checking"
| "completed"
]>
#
Defined inpackages/webrtc/src/transport/ice.ts:10
#
state• state: "closed"
| "failed"
| "disconnected"
| "new"
| "connected"
| "checking"
| "completed"
= "new"
#
Defined inpackages/webrtc/src/transport/ice.ts:8
#
waitStart• Private
Optional
waitStart: default
<[]>
#
Defined inpackages/webrtc/src/transport/ice.ts:12
#
Accessors#
iceGather• get
iceGather(): RTCIceGatherer
#
Returns#
Defined inpackages/webrtc/src/transport/ice.ts:20
#
role• get
role(): "controlling"
| "controlled"
#
Returns"controlling"
| "controlled"
#
Defined inpackages/webrtc/src/transport/ice.ts:24
#
Methods#
addRemoteCandidate▸ addRemoteCandidate(candidate?
): Promise
<void>
#
ParametersName | Type |
---|---|
candidate? | IceCandidate |
#
ReturnsPromise
<void>
#
Defined inpackages/webrtc/src/transport/ice.ts:44
#
setState▸ Private
setState(state
): void
#
ParametersName | Type |
---|---|
state | "closed" | "failed" | "disconnected" | "new" | "connected" | "checking" | "completed" |
#
Returnsvoid
#
Defined inpackages/webrtc/src/transport/ice.ts:29
#
start▸ start(remoteParameters
): Promise
<void>
#
ParametersName | Type |
---|---|
remoteParameters | RTCIceParameters |
#
ReturnsPromise
<void>
#
Defined inpackages/webrtc/src/transport/ice.ts:54
#
stop▸ stop(): Promise
<void>
#
ReturnsPromise
<void>