W3C home > Mailing lists > Public > public-webrtc@w3.org > February 2018

[webrtc-stats] Pull Request: Rename sender/receiver/track dictionaries

From: henbos via GitHub <sysbot+gh@w3.org>
Date: Wed, 07 Feb 2018 13:35:27 +0000
To: public-webrtc@w3.org
Message-ID: <pull_request.opened-167694039-1518010524-sysbot+gh@w3.org>
henbos has just submitted a new pull request for https://github.com/w3c/webrtc-stats:

== Rename sender/receiver/track dictionaries ==
Fixes #298.

Top-level rename (old => new):
```
RTCMediaStreamTrackStats => RTCMediaHandlerStats
```
Audio names:
```
RTCAudioStreamTrackStats => RTCAudioHandlerStats
RTCAudioSenderStats (not renamed)
RTCAudioReceiverStats (not renamed)
RTCLocalAudioStreamTrackStats => RTCSenderAudioTrackAttachmentStats
```
Video names:
```
RTCVideoStreamTrackStats => RTCVideoHandlerStats
RTCVideoSenderStats (not renamed)
RTCVideoReceiverStats (not renamed)
RTCLocalVideoStreamTrackStats => RTCSenderVideoTrackAttachmentStats
```

This forms the following hierarchy:
```
DICTIONARY NAME                          | INSTANCE FOUND BY
-----------------------------------------+--------------------------------------
RTCMediaHandlerStats                     | N/A
  RTCAudioHandlerStats                   | N/A
    RTCAudioSenderStats                  | kind == 'audio' && type == 'sender' 
      RTCSenderAudioTrackAttachmentStats | kind == 'audio' && type == 'track'
    RTCAudioReceiverStats                | kind == 'audio' && type == 'receiver'
  RTCVideoHandlerStats                   | N/A
    RTCVideoSenderStats                  | kind == 'video' && type == 'sender'
      RTCSenderVideoTrackAttachmentStats | kind == 'video' && type == 'track'
    RTCVideoReceiversStats               | kind == 'video' && type == 'receiver'
```
Where 'track' (attachment) stats have the same members as the senders but relative to the attachment period.

See https://github.com/w3c/webrtc-stats/pull/322
Received on Wednesday, 7 February 2018 13:35:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 February 2018 13:35:29 UTC