Intent to remove: isRemote member in WebRTC getStats() results

We're removing the isRemote member of the RTCRTPStreamStats [1] 
dictionary used to identify remote statistics returned from the 
peerConnection.getStats() method in WebRTC. [2]

The spec changed in 2017 to explicit types instead of this boolean. [3]

We just landed a deprecation warning in Nightly 63. [4]

We plan on removing isRemote in 65, as the warning says. [5]

We plan to warn in 63-64, but for technical reasons can't warn in 65.

The transition plan involves educating web developers to use the 
existing remoteId API, which remains unaffected by this transition.
Full details are in https://blog.mozilla.org/webrtc/getstats-isremote-65

Compatibility:
  - Chrome does not yet return remote statistics from the spec's latest
    pc.getStats() API, only local stats.
  - Safari implements this subset of getStats() similar to Firefox today.
  - Edge doesn't implement RTCPeerConnection, though there's a shim.

..: Jan-Ivar :.

[1] 
https://w3c.github.io/webrtc-stats/archives/20170330/webrtc-stats.html#dom-rtcrtpstreamstats-isremote
[2] http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getstats
[3] https://github.com/w3c/webrtc-stats/pull/191/files
[4] https://bugzilla.mozilla.org/show_bug.cgi?id=1393306
[5] https://bugzilla.mozilla.org/show_bug.cgi?id=1380555

PS: There’s also an isRemote member in RTCIceCandidateStats which 
remains unaffected.
0
Jan
8/6/2018 11:30:35 PM
mozilla.dev.platform 6465 articles. 0 followers. Post Follow

0 Replies
25 Views

Similar Articles

[PageSpeed] 41

Reply: