- From: <bugzilla@jessica.w3.org>
- Date: Wed, 20 Aug 2014 21:37:05 +0000
- To: public-webrtc@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26620
Bug ID: 26620
Summary: getStats should be allowed on a closed PeerConnection.
Product: WebRTC Working Group
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: WebRTC API
Assignee: public-webrtc@w3.org
Reporter: harald@alvestrand.no
CC: public-webrtc@w3.org
>From Jan-Ivar Bruarøy:
I'd like to propose a change to getStats so that calling it on a closed
PeerConnection does not throw, but instead gives you the stats at the time the
PeerConnection closed.
Use-case: A webpage wants stats about the call that just terminated from the
other side - e.g. how many frames dropped?
In [1] remove step 1:
> 1. If the RTCPeerConnection object's RTCPeerConnection signalingState is closed, throw an InvalidStateError exception.
And edit step 5 (which would now be 4):
> 4. Start gathering the stats indicated by selectorArg. In case selectorArg is null, stats MUST be gathered for the whole RTCPeerConnection object. If the RTCPeerConnection object's RTCPeerConnection signalingState is closed, stats should reflect the state at or near the time that signalingState transitioned to closed.
Implementations would basically cache a final call to getStats internally as
part of transitioning to closed.
.: Jan-Ivar :.
[1] http://dev.w3.org/2011/webrtc/editor/webrtc.html#methods-5
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
Received on Wednesday, 20 August 2014 21:37:08 UTC