createResolver
function createResolver(statsReport): object;
The WebRTC stats are given to us as a flat structure (an array of objects that contain id-fields pointing to other objects in the same array).
This class takes such an array as input and can expand an entry so that references become nested objects.
https://www.w3.org/TR/webrtc-stats/#summary https://www.w3.org/TR/webrtc-stats/#rtctatstype-*
Parameters
| Parameter | Type |
|---|---|
statsReport | AnyStats[] |
Returns
object
| Name | Type |
|---|---|
expand() | { (audioIn): InboundAudio; (audioOut): OutboundAudio; (videoIn): InboundVideo; (videoOut): OutboundVideo; } |