-
Notifications
You must be signed in to change notification settings - Fork 47
RTCStatsType out of sync with webrtc-pc #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for the feedback, Donald. This was discussed at TPAC14 and there are active PRs under discussion which fix the issue. AFAIU, the RTCStatsType defined in webrtc-stats are the correct ones and we are currently working out how best to document this to avoid this kind of discrepancy between the two documents. |
@dontcallmedom promised to find the link to the TAG document which says whether we should have hyphens or not. |
re hyphens in inboundrtp/outboundrtp vs hyphenated version, the TAG guidance is to use hyphens for enum values:
|
Two items:
First one is editorial. Separated out as #50 |
Note: Extensible enums don't currently exist. Filed bug at whatwg/webidl#184 |
Correct extensible enum bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27048 |
* chrome shim: move getStats this moves getStats so it overrides on the prototype, not as part of the constructor. * chrome shim: dont override RTCPeerConnection dont override the unprefixed RTCPeerConnection if it exists. * chrome shim: dont shim promises on unprefixed PC dont attempt to shim promises using callbacks if we have support for native promises. * chrome shim: fix generateCertificate bug this restores the old (and correct) logic of checking for webkitRTCPeerConnection.generateCertificate * chrome: return spec stats when supported this returns spec-stats when they are supported. Support is determined by checking for the length of RTCPeerConnection.prototype.getStats.length which is 2 for the Chrome legacy API and 0 if the new getStats implementation is available. This is a breaking change, the types and contents of those statistics will be different. * Revert "chrome shim: dont shim promises on unprefixed PC" This reverts commit 1693ded. * chrome: only promisfy createOffer/Answer < M52 promisifys createOffer and createAnswer only in Chrome < M52. This is due to https://bugs.chromium.org/p/chromium/issues/detail?id=619289 which was discovered a bit late. * chrome: add hyphen in stats type This adds the hyphen in a number of stats types. See w3c/webrtc-stats#5 for the details. * chrome: remove object stats behaviour removes iterating over the Map with Object.keys()
The RTCStatsType in webrtc-stats is out of sync with RTCStatsType in webrtc-pc.
rtp
.The text was updated successfully, but these errors were encountered: