Files
Testing/videocall1/getStats/dev/dataSentReceived.js
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -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);
}
};