mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 19:07:31 +09:00
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:
parent
4edd2f91b4
commit
9f63203a43
7 changed files with 57 additions and 42 deletions
|
|
@ -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, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue