infobip-rtc
Version:
Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation
22 lines • 929 B
JavaScript
import { RemoteMediaStats } from "../RemoteMediaStats";
export class VideoRemoteMediaStats extends RemoteMediaStats {
constructor(id) {
super(id);
this.framesReceived = 0;
this.framesDecoded = 0;
this.keyFramesDecoded = 0;
this.framesDropped = 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, framesReceived: this.framesReceived, framesDecoded: this.framesDecoded, keyFramesDecoded: this.keyFramesDecoded, framesDropped: this.framesDropped, nackCount: this.nackCount, firCount: this.firCount, pliCount: this.pliCount, averageQP: this.averageQP });
}
}
//# sourceMappingURL=VideoRemoteMediaStats.js.map