@stream-io/video-client 1.6.5 → 1.7.0
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/CHANGELOG.md +7 -0
- package/dist/index.browser.es.js +16 -3824
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +16 -3824
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +16 -3824
- package/dist/index.es.js.map +1 -1
- package/dist/src/coordinator/connection/client.d.ts +0 -1
- package/dist/src/gen/google/protobuf/struct.d.ts +1 -11
- package/dist/src/gen/google/protobuf/timestamp.d.ts +1 -4
- package/dist/src/gen/video/sfu/event/events.d.ts +0 -106
- package/dist/src/gen/video/sfu/models/models.d.ts +0 -55
- package/dist/src/gen/video/sfu/signal_rpc/signal.d.ts +0 -64
- package/dist/src/stats/types.d.ts +1 -0
- package/package.json +6 -6
- package/src/coordinator/connection/client.ts +0 -6
- package/src/gen/google/protobuf/struct.ts +1 -286
- package/src/gen/google/protobuf/timestamp.ts +2 -78
- package/src/gen/video/sfu/event/events.ts +2 -2930
- package/src/gen/video/sfu/models/models.ts +2 -1553
- package/src/gen/video/sfu/signal_rpc/signal.client.ts +1 -1
- package/src/gen/video/sfu/signal_rpc/signal.ts +2 -1480
- package/src/stats/stateStoreStatsReporter.ts +4 -1
- package/src/stats/types.ts +1 -0
|
@@ -252,7 +252,7 @@ const transform = (
|
|
|
252
252
|
|
|
253
253
|
const codec = stats.find(
|
|
254
254
|
(s) => s.type === 'codec' && s.id === rtcStreamStats.codecId,
|
|
255
|
-
) as
|
|
255
|
+
) as RTCRtpCodec | undefined;
|
|
256
256
|
|
|
257
257
|
const transport = stats.find(
|
|
258
258
|
(s) => s.type === 'transport' && s.id === rtcStreamStats.transportId,
|
|
@@ -303,6 +303,7 @@ const getEmptyStats = (stats?: StatsReport): AggregatedStatsReport => {
|
|
|
303
303
|
highestFrameWidth: 0,
|
|
304
304
|
highestFrameHeight: 0,
|
|
305
305
|
highestFramesPerSecond: 0,
|
|
306
|
+
codec: '',
|
|
306
307
|
timestamp: Date.now(),
|
|
307
308
|
};
|
|
308
309
|
};
|
|
@@ -346,6 +347,8 @@ const aggregate = (stats: StatsReport): AggregatedStatsReport => {
|
|
|
346
347
|
report.averageRoundTripTimeInMs = Math.round(
|
|
347
348
|
(report.averageRoundTripTimeInMs / streams.length) * 1000,
|
|
348
349
|
);
|
|
350
|
+
// we take the first codec we find, as it should be the same for all streams
|
|
351
|
+
report.codec = streams[0].codec || '';
|
|
349
352
|
}
|
|
350
353
|
|
|
351
354
|
const qualityLimitationReason = [
|