priority property

int? get priority

The RTCIceCandidate interface's read-only priority property specifies the candidate's priority according to the remote peer; the higher this value is, the better the remote peer considers the candidate to be.

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

Implementation

external int? get priority;