getStats should be allowed on a closed PeerConnection
Categories
(Core :: WebRTC, defect, P3)
Tracking
()
| backlog | webrtc/webaudio+ |
People
(Reporter: jib, Assigned: philipp.hancke, NeedInfo)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
Updated•10 years ago
|
Updated•10 years ago
|
Comment 1•8 years ago
|
||
| Reporter | ||
Comment 2•8 years ago
|
||
| Reporter | ||
Comment 4•8 years ago
|
||
| Reporter | ||
Comment 5•4 years ago
|
||
Here's some newer STRs for this bug that don't require interaction:
Expected result (Chrome):
checking
connected
[object Object]
[object Object]
disconnected
failed
Actual result (Firefox):
checking
connected
[object Object]
undefined
disconnected
failed
| Reporter | ||
Comment 6•4 years ago
|
||
Spec support on preserving stats after transceiver.stop() and pc.close():
"With a few exceptions, monitored objects, once created, exist for the duration of their associated
RTCPeerConnection. This ensures statistics from them are available in the result fromgetStats()even past the associated peer connection beingclosed.Only a few monitored objects have shorter lifetimes. Statistics from these objects are no longer available in subsequent getStats() results. The object descriptions in [WEBRTC-STATS] describe when these monitored objects are deleted. "
"RTP monitored objects are not deleted."
Updated•3 years ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 7•1 day ago
|
||
Is there an ETA? I got a request to polyfill this in adapter.js but adding polyfills without an exit criterion is more harm than good:
https://github.com/webrtcHacks/adapter/issues/1179
| Assignee | ||
Comment 8•1 day ago
|
||
Note: this retains local and remote candidate stats which Chromium does not
and which might violate the specification.
Updated•1 day ago
|
Updated•1 day ago
|
Comment 10•19 hours ago
|
||
Comment 11•19 hours ago
|
||
Backed out for causing mda failures at getStats peer connection
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-FAIL | dom/media/webrtc/tests/mochitests/test_peerConnection_bug1773067.html | getStats on closed peer connection fails instead of hanging - got undefined, expected "InvalidStateError"
Description
•