mediasoup 3.19.8 → 3.19.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node/lib/fbs/rtp-stream/base-stats.d.ts +5 -5
- package/node/lib/fbs/rtp-stream/base-stats.d.ts.map +1 -1
- package/node/lib/fbs/rtp-stream/base-stats.js +3 -3
- package/package.json +1 -1
- package/worker/fbs/rtpStream.fbs +1 -1
- package/worker/include/RTC/RtpStream.hpp +1 -1
- package/worker/include/RTC/RtpStreamRecv.hpp +1 -1
- package/worker/include/RTC/RtpStreamSend.hpp +1 -1
- package/worker/include/RTC/RtxStream.hpp +2 -2
- package/worker/src/RTC/RTCP/ReceiverReport.cpp +1 -1
- package/worker/src/RTC/RateCalculator.cpp +2 -2
- package/worker/src/RTC/RtpStreamRecv.cpp +6 -6
- package/worker/src/RTC/RtpStreamSend.cpp +1 -1
- package/worker/src/RTC/RtxStream.cpp +3 -3
|
@@ -11,7 +11,7 @@ export declare class BaseStats implements flatbuffers.IUnpackableObject<BaseStat
|
|
|
11
11
|
kind(): MediaKind;
|
|
12
12
|
mimeType(): string | null;
|
|
13
13
|
mimeType(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
14
|
-
packetsLost():
|
|
14
|
+
packetsLost(): number;
|
|
15
15
|
fractionLost(): number;
|
|
16
16
|
packetsDiscarded(): bigint;
|
|
17
17
|
packetsRetransmitted(): bigint;
|
|
@@ -31,7 +31,7 @@ export declare class BaseStats implements flatbuffers.IUnpackableObject<BaseStat
|
|
|
31
31
|
static addSsrc(builder: flatbuffers.Builder, ssrc: number): void;
|
|
32
32
|
static addKind(builder: flatbuffers.Builder, kind: MediaKind): void;
|
|
33
33
|
static addMimeType(builder: flatbuffers.Builder, mimeTypeOffset: flatbuffers.Offset): void;
|
|
34
|
-
static addPacketsLost(builder: flatbuffers.Builder, packetsLost:
|
|
34
|
+
static addPacketsLost(builder: flatbuffers.Builder, packetsLost: number): void;
|
|
35
35
|
static addFractionLost(builder: flatbuffers.Builder, fractionLost: number): void;
|
|
36
36
|
static addPacketsDiscarded(builder: flatbuffers.Builder, packetsDiscarded: bigint): void;
|
|
37
37
|
static addPacketsRetransmitted(builder: flatbuffers.Builder, packetsRetransmitted: bigint): void;
|
|
@@ -46,7 +46,7 @@ export declare class BaseStats implements flatbuffers.IUnpackableObject<BaseStat
|
|
|
46
46
|
static addRtxPacketsDiscarded(builder: flatbuffers.Builder, rtxPacketsDiscarded: bigint): void;
|
|
47
47
|
static addRoundTripTime(builder: flatbuffers.Builder, roundTripTime: number): void;
|
|
48
48
|
static endBaseStats(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
49
|
-
static createBaseStats(builder: flatbuffers.Builder, timestamp: bigint, ssrc: number, kind: MediaKind, mimeTypeOffset: flatbuffers.Offset, packetsLost:
|
|
49
|
+
static createBaseStats(builder: flatbuffers.Builder, timestamp: bigint, ssrc: number, kind: MediaKind, mimeTypeOffset: flatbuffers.Offset, packetsLost: number, fractionLost: number, packetsDiscarded: bigint, packetsRetransmitted: bigint, packetsRepaired: bigint, nackCount: bigint, nackPacketCount: bigint, pliCount: bigint, firCount: bigint, score: number, ridOffset: flatbuffers.Offset, rtxSsrc: number | null, rtxPacketsDiscarded: bigint, roundTripTime: number): flatbuffers.Offset;
|
|
50
50
|
unpack(): BaseStatsT;
|
|
51
51
|
unpackTo(_o: BaseStatsT): void;
|
|
52
52
|
}
|
|
@@ -55,7 +55,7 @@ export declare class BaseStatsT implements flatbuffers.IGeneratedObject {
|
|
|
55
55
|
ssrc: number;
|
|
56
56
|
kind: MediaKind;
|
|
57
57
|
mimeType: string | Uint8Array | null;
|
|
58
|
-
packetsLost:
|
|
58
|
+
packetsLost: number;
|
|
59
59
|
fractionLost: number;
|
|
60
60
|
packetsDiscarded: bigint;
|
|
61
61
|
packetsRetransmitted: bigint;
|
|
@@ -69,7 +69,7 @@ export declare class BaseStatsT implements flatbuffers.IGeneratedObject {
|
|
|
69
69
|
rtxSsrc: number | null;
|
|
70
70
|
rtxPacketsDiscarded: bigint;
|
|
71
71
|
roundTripTime: number;
|
|
72
|
-
constructor(timestamp?: bigint, ssrc?: number, kind?: MediaKind, mimeType?: string | Uint8Array | null, packetsLost?:
|
|
72
|
+
constructor(timestamp?: bigint, ssrc?: number, kind?: MediaKind, mimeType?: string | Uint8Array | null, packetsLost?: number, fractionLost?: number, packetsDiscarded?: bigint, packetsRetransmitted?: bigint, packetsRepaired?: bigint, nackCount?: bigint, nackPacketCount?: bigint, pliCount?: bigint, firCount?: bigint, score?: number, rid?: string | Uint8Array | null, rtxSsrc?: number | null, rtxPacketsDiscarded?: bigint, roundTripTime?: number);
|
|
73
73
|
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
74
74
|
}
|
|
75
75
|
//# sourceMappingURL=base-stats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-stats.d.ts","sourceRoot":"","sources":["../../../src/fbs/rtp-stream/base-stats.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAGhE,qBAAa,SAAU,YAAW,WAAW,CAAC,iBAAiB,CAAC,UAAU,CAAC;IACzE,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,SAAS;IAMvD,MAAM,CAAC,kBAAkB,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,SAAS,GAAE,SAAS;IAI9E,MAAM,CAAC,8BAA8B,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,SAAS,GAAE,SAAS;IAK1F,SAAS,IAAG,MAAM;IAKlB,IAAI,IAAG,MAAM;IAKb,IAAI,IAA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offset = this.bb.__offset(this.bb_pos, 12);
|
|
41
|
-
return offset ? this.bb.
|
|
41
|
+
return offset ? this.bb.readInt32(this.bb_pos + offset) : 0;
|
|
42
42
|
}
|
|
43
43
|
fractionLost() {
|
|
44
44
|
const offset = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -108,7 +108,7 @@ class BaseStats {
|
|
|
108
108
|
builder.addFieldOffset(3, mimeTypeOffset, 0);
|
|
109
109
|
}
|
|
110
110
|
static addPacketsLost(builder, packetsLost) {
|
|
111
|
-
builder.
|
|
111
|
+
builder.addFieldInt32(4, packetsLost, 0);
|
|
112
112
|
}
|
|
113
113
|
static addFractionLost(builder, fractionLost) {
|
|
114
114
|
builder.addFieldInt8(5, fractionLost, 0);
|
|
@@ -221,7 +221,7 @@ class BaseStatsT {
|
|
|
221
221
|
rtxSsrc;
|
|
222
222
|
rtxPacketsDiscarded;
|
|
223
223
|
roundTripTime;
|
|
224
|
-
constructor(timestamp = BigInt('0'), ssrc = 0, kind = media_kind_1.MediaKind.AUDIO, mimeType = null, packetsLost =
|
|
224
|
+
constructor(timestamp = BigInt('0'), ssrc = 0, kind = media_kind_1.MediaKind.AUDIO, mimeType = null, packetsLost = 0, fractionLost = 0, packetsDiscarded = BigInt('0'), packetsRetransmitted = BigInt('0'), packetsRepaired = BigInt('0'), nackCount = BigInt('0'), nackPacketCount = BigInt('0'), pliCount = BigInt('0'), firCount = BigInt('0'), score = 0, rid = null, rtxSsrc = null, rtxPacketsDiscarded = BigInt('0'), roundTripTime = 0.0) {
|
|
225
225
|
this.timestamp = timestamp;
|
|
226
226
|
this.ssrc = ssrc;
|
|
227
227
|
this.kind = kind;
|
package/package.json
CHANGED
package/worker/fbs/rtpStream.fbs
CHANGED
|
@@ -197,7 +197,7 @@ namespace RTC
|
|
|
197
197
|
uint32_t maxPacketTs{ 0u };
|
|
198
198
|
// When the packet with highest timestammp was seen.
|
|
199
199
|
uint64_t maxPacketMs{ 0u };
|
|
200
|
-
|
|
200
|
+
int32_t packetsLost{ 0 };
|
|
201
201
|
uint8_t fractionLost{ 0u };
|
|
202
202
|
size_t packetsDiscarded{ 0u };
|
|
203
203
|
size_t packetsRetransmitted{ 0u };
|
|
@@ -123,7 +123,7 @@ namespace RTC
|
|
|
123
123
|
// although it's exposed as integer in the stats.
|
|
124
124
|
float jitter{ 0 };
|
|
125
125
|
uint8_t firSeqNumber{ 0u };
|
|
126
|
-
|
|
126
|
+
int32_t reportedPacketsLost{ 0 };
|
|
127
127
|
std::unique_ptr<RTC::NackGenerator> nackGenerator;
|
|
128
128
|
TimerHandle* inactivityCheckPeriodicTimer{ nullptr };
|
|
129
129
|
bool inactive{ false };
|
|
@@ -69,7 +69,7 @@ namespace RTC
|
|
|
69
69
|
|
|
70
70
|
private:
|
|
71
71
|
// Packets lost at last interval for score calculation.
|
|
72
|
-
|
|
72
|
+
int32_t lostPriorScore{ 0 };
|
|
73
73
|
// Packets sent at last interval for score calculation.
|
|
74
74
|
uint32_t sentPriorScore{ 0u };
|
|
75
75
|
std::string mid;
|
|
@@ -93,7 +93,7 @@ namespace RTC
|
|
|
93
93
|
uint32_t badSeq{ 0u }; // Last 'bad' seq number + 1.
|
|
94
94
|
uint32_t maxPacketTs{ 0u }; // Highest timestamp seen.
|
|
95
95
|
uint64_t maxPacketMs{ 0u }; // When the packet with highest timestammp was seen.
|
|
96
|
-
|
|
96
|
+
int32_t packetsLost{ 0 };
|
|
97
97
|
uint8_t fractionLost{ 0u };
|
|
98
98
|
size_t packetsDiscarded{ 0u };
|
|
99
99
|
size_t packetsCount{ 0u };
|
|
@@ -106,7 +106,7 @@ namespace RTC
|
|
|
106
106
|
uint32_t receivedPrior{ 0u };
|
|
107
107
|
uint32_t lastSrTimestamp{ 0u };
|
|
108
108
|
uint64_t lastSrReceived{ 0u };
|
|
109
|
-
|
|
109
|
+
int32_t reportedPacketsLost{ 0 };
|
|
110
110
|
};
|
|
111
111
|
} // namespace RTC
|
|
112
112
|
|
|
@@ -39,7 +39,7 @@ namespace RTC
|
|
|
39
39
|
MS_DUMP_CLEAN(indentation, "<ReceiverReport>");
|
|
40
40
|
MS_DUMP_CLEAN(indentation, " ssrc: %" PRIu32, GetSsrc());
|
|
41
41
|
MS_DUMP_CLEAN(indentation, " fraction lost: %" PRIu8, GetFractionLost());
|
|
42
|
-
MS_DUMP_CLEAN(indentation, " total lost: %"
|
|
42
|
+
MS_DUMP_CLEAN(indentation, " total lost: %" PRIi32, GetTotalLost());
|
|
43
43
|
MS_DUMP_CLEAN(indentation, " last seq: %" PRIu32, GetLastSeq());
|
|
44
44
|
MS_DUMP_CLEAN(indentation, " jitter: %" PRIu32, GetJitter());
|
|
45
45
|
MS_DUMP_CLEAN(indentation, " lsr: %" PRIu32, GetLastSenderReport());
|
|
@@ -70,8 +70,8 @@ namespace RTC
|
|
|
70
70
|
|
|
71
71
|
MS_ASSERT(
|
|
72
72
|
this->newestItemIndex != this->oldestItemIndex || this->oldestItemIndex == -1,
|
|
73
|
-
"newest index overlaps with the oldest one [newestItemIndex:%"
|
|
74
|
-
", oldestItemIndex:%"
|
|
73
|
+
"newest index overlaps with the oldest one [newestItemIndex:%" PRIi32
|
|
74
|
+
", oldestItemIndex:%" PRIi32 "]",
|
|
75
75
|
this->newestItemIndex,
|
|
76
76
|
this->oldestItemIndex);
|
|
77
77
|
|
|
@@ -470,7 +470,7 @@ namespace RTC
|
|
|
470
470
|
|
|
471
471
|
report->SetSsrc(GetSsrc());
|
|
472
472
|
|
|
473
|
-
const
|
|
473
|
+
const int32_t prevPacketsLost = this->packetsLost;
|
|
474
474
|
|
|
475
475
|
// Calculate Packets Expected and Lost.
|
|
476
476
|
auto expected = GetExpectedPackets();
|
|
@@ -481,7 +481,7 @@ namespace RTC
|
|
|
481
481
|
}
|
|
482
482
|
else
|
|
483
483
|
{
|
|
484
|
-
this->packetsLost =
|
|
484
|
+
this->packetsLost = 0;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
// Calculate Fraction Lost.
|
|
@@ -508,9 +508,9 @@ namespace RTC
|
|
|
508
508
|
// Worst remote fraction lost is not worse than local one.
|
|
509
509
|
if (worstRemoteFractionLost <= this->fractionLost)
|
|
510
510
|
{
|
|
511
|
-
this->
|
|
511
|
+
this->reportedPacketsLost += (this->packetsLost - prevPacketsLost);
|
|
512
512
|
|
|
513
|
-
report->SetTotalLost(this->
|
|
513
|
+
report->SetTotalLost(this->reportedPacketsLost);
|
|
514
514
|
report->SetFractionLost(this->fractionLost);
|
|
515
515
|
}
|
|
516
516
|
else
|
|
@@ -518,9 +518,9 @@ namespace RTC
|
|
|
518
518
|
// Recalculate packetsLost.
|
|
519
519
|
const uint32_t newLostInterval = (worstRemoteFractionLost * expectedInterval) >> 8;
|
|
520
520
|
|
|
521
|
-
this->
|
|
521
|
+
this->reportedPacketsLost += newLostInterval;
|
|
522
522
|
|
|
523
|
-
report->SetTotalLost(this->
|
|
523
|
+
report->SetTotalLost(this->reportedPacketsLost);
|
|
524
524
|
report->SetFractionLost(worstRemoteFractionLost);
|
|
525
525
|
}
|
|
526
526
|
|
|
@@ -593,7 +593,7 @@ namespace RTC
|
|
|
593
593
|
this->sentPriorScore = totalSent;
|
|
594
594
|
|
|
595
595
|
// Calculate number of packets lost in this interval.
|
|
596
|
-
const
|
|
596
|
+
const int32_t totalLost = report->GetTotalLost() > 0 ? report->GetTotalLost() : 0;
|
|
597
597
|
uint32_t lost;
|
|
598
598
|
|
|
599
599
|
if (totalLost < this->lostPriorScore)
|
|
@@ -90,7 +90,7 @@ namespace RTC
|
|
|
90
90
|
|
|
91
91
|
report->SetSsrc(GetSsrc());
|
|
92
92
|
|
|
93
|
-
const
|
|
93
|
+
const int32_t prevPacketsLost = this->packetsLost;
|
|
94
94
|
|
|
95
95
|
// Calculate Packets Expected and Lost.
|
|
96
96
|
auto expected = GetExpectedPackets();
|
|
@@ -124,9 +124,9 @@ namespace RTC
|
|
|
124
124
|
this->fractionLost = std::round((static_cast<double>(lostInterval << 8) / expectedInterval));
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
this->
|
|
127
|
+
this->reportedPacketsLost += (this->packetsLost - prevPacketsLost);
|
|
128
128
|
|
|
129
|
-
report->SetTotalLost(this->
|
|
129
|
+
report->SetTotalLost(this->reportedPacketsLost);
|
|
130
130
|
report->SetFractionLost(this->fractionLost);
|
|
131
131
|
|
|
132
132
|
// Fill the rest of the report.
|