UNPKG

infobip-rtc

Version:

Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation

21 lines 900 B
import { LocalMediaStats } from "../LocalMediaStats"; export class VideoLocalMediaStats extends LocalMediaStats { constructor(id) { super(id); this.framesSent = 0; this.framesEncoded = 0; this.keyFramesEncoded = 0; this.nackCount = 0; this.firCount = 0; this.pliCount = 0; this.qpSum = 0; this.averageQP = 0; } get video() { return true; } toJSON() { return Object.assign(Object.assign({}, super.toJSON()), { frameWidth: this.frameWidth, frameHeight: this.frameHeight, framesSent: this.framesSent, framesEncoded: this.framesEncoded, keyFramesEncoded: this.keyFramesEncoded, nackCount: this.nackCount, firCount: this.firCount, pliCount: this.pliCount, averageQP: this.averageQP, qualityLimitationReason: this.qualityLimitationReason }); } } //# sourceMappingURL=VideoLocalMediaStats.js.map