infobip-rtc
Version:
Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation
23 lines • 702 B
JavaScript
export class RemoteMediaStats {
constructor(id) {
this.packetsReceived = 0;
this.bytesReceived = 0;
this.packetsLost = 0;
this.jitterBufferDelay = 0;
this.jitterBufferEmittedCount = 0;
this.averageJitterBufferDelay = 0;
this.id = id;
}
toJSON() {
return {
trackId: this.trackId,
codec: this.codec,
packetsReceived: this.packetsReceived,
bytesReceived: this.bytesReceived,
packetsLost: this.packetsLost,
averageJitterBufferDelay: this.averageJitterBufferDelay,
category: "remote"
};
}
}
//# sourceMappingURL=RemoteMediaStats.js.map