UNPKG

infobip-rtc

Version:

Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation

28 lines 903 B
export class AudioStats { constructor() { this.roundTripTime = 0; this.packetsSent = 0; this.bytesSent = 0; this.retransmittedPacketsSent = 0; this.retransmittedBytesSent = 0; this.packetsReceived = 0; this.bytesReceived = 0; this.packetsLost = 0; this.jitter = 0; } toJSON() { return { codec: this.codec, roundTripTime: this.roundTripTime, packetsSent: this.packetsSent, bytesSent: this.bytesSent, retransmittedPacketsSent: this.retransmittedPacketsSent, retransmittedBytesSent: this.retransmittedBytesSent, packetsReceived: this.packetsReceived, bytesReceived: this.bytesReceived, packetsLost: this.packetsLost, jitter: this.jitter }; } } //# sourceMappingURL=AudioStats.js.map