RTCIceCandidatePairStats.priority

Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

The obsolete RTCIceCandidatePairStats property priority reports the priority of the candidate pair as an integer value. The higher the value, the more likely the WebRTC layer is to select the candidate pair when the time comes to establish (or re-establish) a connection between the two peers.

Syntax

pairPriority = rtcIceCandidatePairStats.priority;

Value

An integer value indicating the priority of this pair of candidates as compared to other pairs on the same peer connection. The higher this value, the better the WebRTC layer thinks this pair of candidates is compared to the others, and the more likely a pair is to be selelcted for use.

Note: This property was removed from the specification as its value cannot be guaranteed to be accurately represented in a JavaScript number. You can calculcate its value using the algorithm described in RFC 5245, section 5.7.2 if you need this information and can accept the risk that the result may not be entirely accurate.

Specifications

Specification Status Comment
Identifiers for WebRTC's Statistics API
The definition of 'RTCIceCandidatePairStats.priority' in that specification.
Candidate Recommendation Initial specification.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
priority
Non-standard
Chrome No support NoEdge No support NoFirefox Full support 42
Full support 42
Full support 29
Alternate Name
Alternate Name Uses the non-standard name: mozPriority
IE No support NoOpera ? Safari ? WebView Android No support NoChrome Android No support NoFirefox Android Full support 42
Full support 42
Full support 29
Alternate Name
Alternate Name Uses the non-standard name: mozPriority
Opera Android ? Safari iOS ? Samsung Internet Android No support No

Legend

Full support
Full support
No support
No support
Compatibility unknown
Compatibility unknown
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Uses a non-standard name.
Uses a non-standard name.