clone webrtc stats report.

This commit is contained in:
Miroslav Šedivý 2021-03-18 14:09:12 +01:00
parent a73a38b736
commit a9e40d8b22

View File

@ -334,7 +334,7 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
let report: any = null
stats.forEach(function (stat) {
if (stat.type === 'inbound-rtp' && stat.kind === 'video') {
report = stat
report = { ...stat }
}
})