Issue #2332 - Hyphenate rtc stats type as per spec

Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1322503
This commit is contained in:
Basilisk-Dev 2023-10-18 16:30:27 -04:00 • committed by roytam1
commit 9f63203a43
7 changed files with 57 additions and 42 deletions

View file

@ -90,12 +90,12 @@ function checkTrackStats(pc, rtpSenderOrReceiver, outbound) {
(audio ? "audio" : "video") + " rtp track id " + track.id;
return pc.getStats(track).then(stats => {
ok(pc.hasStat(stats, {
type: outbound ? "outboundrtp" : "inboundrtp",
type: outbound ? "outbound-rtp" : "inbound-rtp",
isRemote: false,
mediaType: audio ? "audio" : "video"
}), msg + " - found expected stats");
ok(!pc.hasStat(stats, {
type: outbound ? "inboundrtp" : "outboundrtp",
type: outbound ? "inbound-rtp" : "outbound-rtp",
isRemote: false
}), msg + " - did not find extra stats with wrong direction");
ok(!pc.hasStat(stats, {