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

Class: IceCandidate

Constructors#

constructor#

new IceCandidate(component, foundation, ip, port, priority, protocol, type)

Parameters#

NameType
componentnumber
foundationstring
ipstring
portnumber
prioritynumber
protocolstring
typestring

Defined in#

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

Properties#

component#

component: number


foundation#

foundation: string


ip#

ip: string


port#

port: number


priority#

priority: number


protocol#

protocol: string


relatedAddress#

Optional relatedAddress: string

Defined in#

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


relatedPort#

Optional relatedPort: number

Defined in#

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


sdpMLineIndex#

Optional sdpMLineIndex: number

Defined in#

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


sdpMid#

Optional sdpMid: string

Defined in#

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


tcpType#

Optional tcpType: string

Defined in#

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


type#

type: string

Methods#

toJSON#

toJSON(): RTCIceCandidate

Returns#

RTCIceCandidate

Defined in#

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


fromJSON#

Static fromJSON(data): undefined | IceCandidate

Parameters#

NameType
dataRTCIceCandidate

Returns#

undefined | IceCandidate

Defined in#

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