protocol property

RTCIceProtocol? get protocol

The RTCIceCandidate interface's read-only protocol property is a string which indicates whether the candidate uses or as its transport protocol.

The protocol field's value is set from the candidateInfo options object passed to the RTCIceCandidate.RTCIceCandidate constructor. You can't specify the value of protocol directly in the options object, but its value is automatically extracted from the object's candidate a-line, if it's formatted properly.

protocol is null by default if not specified properly in the SDP, but this is an error condition and will result in a thrown exception when you call RTCPeerConnection.addIceCandidate.

Implementation

external RTCIceProtocol? get protocol;