Skip to main content

Class: RTCIceTransport

Constructors#

constructor#

new RTCIceTransport(gather)

Parameters#

NameType
gatherRTCIceGatherer

Defined in#

packages/webrtc/src/transport/ice.ts:12

Properties#

connection#

connection: Connection

Defined in#

packages/webrtc/src/transport/ice.ts:7


onStateChange#

Readonly onStateChange: default<["closed" | "failed" | "disconnected" | "new" | "connected" | "checking" | "completed"]>

Defined in#

packages/webrtc/src/transport/ice.ts:10


state#

state: "closed" | "failed" | "disconnected" | "new" | "connected" | "checking" | "completed" = "new"

Defined in#

packages/webrtc/src/transport/ice.ts:8


waitStart#

Private Optional waitStart: default<[]>

Defined in#

packages/webrtc/src/transport/ice.ts:12

Accessors#

iceGather#

get iceGather(): RTCIceGatherer

Returns#

RTCIceGatherer

Defined in#

packages/webrtc/src/transport/ice.ts:20


role#

get role(): "controlling" | "controlled"

Returns#

"controlling" | "controlled"

Defined in#

packages/webrtc/src/transport/ice.ts:24

Methods#

addRemoteCandidate#

addRemoteCandidate(candidate?): Promise<void>

Parameters#

NameType
candidate?IceCandidate

Returns#

Promise<void>

Defined in#

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


setState#

Private setState(state): void

Parameters#

NameType
state"closed" | "failed" | "disconnected" | "new" | "connected" | "checking" | "completed"

Returns#

void

Defined in#

packages/webrtc/src/transport/ice.ts:29


start#

start(remoteParameters): Promise<void>

Parameters#

NameType
remoteParametersRTCIceParameters

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/ice.ts:54


stop#

stop(): Promise<void>

Returns#

Promise<void>

Defined in#

packages/webrtc/src/transport/ice.ts:76