infobip-rtc
Version:
Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation
21 lines • 629 B
JavaScript
export class LocalMediaStats {
constructor(id) {
this.packetsSent = 0;
this.bytesSent = 0;
this.retransmittedPacketsSent = 0;
this.retransmittedBytesSent = 0;
this.id = id;
}
toJSON() {
return {
trackId: this.trackId,
codec: this.codec,
packetsSent: this.packetsSent,
bytesSent: this.bytesSent,
retransmittedPacketsSent: this.retransmittedPacketsSent,
retransmittedBytesSent: this.retransmittedBytesSent,
category: "local"
};
}
}
//# sourceMappingURL=LocalMediaStats.js.map