infobip-rtc
Version:
Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation
18 lines • 517 B
JavaScript
export class CallStats {
constructor(isVideo) {
this.bytesSent = 0;
this.bytesReceived = 0;
this.timestamp = Date.now();
this.isVideo = isVideo;
}
toJSON() {
return {
bytesSent: this.bytesSent,
bytesReceived: this.bytesReceived,
currentRoundTripTime: this.currentRoundTripTime,
availableOutgoingBitrate: this.availableOutgoingBitrate,
mos: this.mos
};
}
}
//# sourceMappingURL=CallStats.js.map