Skip to content

Commit

Permalink
Align WebRTC MTI stats with specs (#35703)
Browse files Browse the repository at this point in the history
* Align WebRTC MTI stats with specs

see w3c/webrtc-pc#2744 w3c/webrtc-pc#2748 w3c/webrtc-stats#647
  • Loading branch information
dontcallmedom authored Aug 30, 2022
1 parent bf62f6b commit ffb6a1e
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions webrtc/RTCPeerConnection-mandatory-getStats.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
"packetsReceived",
"packetsLost",
"jitter",
"packetsDiscarded",
"framesDropped"
],
RTCInboundRtpStreamStats: [
"receiverId",
"trackIdentifier",
"remoteId",
"framesDecoded",
"nackCount",
"framesReceived",
"bytesReceived",
"totalAudioEnergy",
"totalSamplesDuration"
"totalSamplesDuration",
"packetsDiscarded"
],
RTCRemoteInboundRtpStreamStats: [
"localId",
Expand All @@ -45,7 +45,6 @@
"bytesSent"
],
RTCOutboundRtpStreamStats: [
"senderId",
"remoteId",
"framesEncoded",
"nackCount",
Expand Down Expand Up @@ -82,17 +81,6 @@
"height",
"framesPerSecond"
],
RTCMediaHandlerStats: [
"trackIdentifier",
],
RTCAudioHandlerStats: [
],
RTCVideoHandlerStats: [
],
RTCVideoSenderStats: [
],
RTCVideoReceiverStats: [
],
RTCCodecStats: [
"payloadType",
/* codecType is part of MTI but is not systematically set
Expand Down Expand Up @@ -179,16 +167,8 @@
// From https://w3c.github.io/webrtc-stats/webrtc-stats.html (webidl)

const parents = {
RTCVideoHandlerStats: "RTCMediaHandlerStats",
RTCVideoSenderStats: "RTCVideoHandlerStats",
RTCVideoSourceStats: "RTCMediaSourceStats",
RTCSenderVideoTrackAttachmentStats: "RTCVideoSenderStats",
RTCVideoReceiverStats: "RTCVideoHandlerStats",
RTCAudioHandlerStats: "RTCMediaHandlerStats",
RTCAudioSenderStats: "RTCAudioHandlerStats",
RTCAudioSourceStats: "RTCMediaSourceStats",
RTCSenderAudioTrackAttachmentStats: "RTCAudioSenderStats",
RTCAudioReceiverStats: "RTCAudioHandlerStats",
RTCReceivedRtpStreamStats: "RTCRtpStreamStats",
RTCInboundRtpStreamStats: "RTCReceivedRtpStreamStats",
RTCRemoteInboundRtpStreamStats: "RTCReceivedRtpStreamStats",
Expand Down

0 comments on commit ffb6a1e

Please sign in to comment.