Files
Testing/videocall1/getStats/dev/dataSentReceived.js
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

12 lines
409 B
JavaScript

getStatsParser.dataSentReceived = function(result) {
if (!result.googCodecName || (result.mediaType !== 'video' && result.mediaType !== 'audio')) return;
if (!!result.bytesSent) {
getStatsResult[result.mediaType].bytesSent = parseInt(result.bytesSent);
}
if (!!result.bytesReceived) {
getStatsResult[result.mediaType].bytesReceived = parseInt(result.bytesReceived);
}
};