Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Preventing the client for using/sending resolution data from/to remote participants
hristoterezov6ae35fb21d43
diff --git a/conference.js b/conference.jsindex 1c041592c0..a930bc8788 100644--- a/conference.js+++ b/conference.js@@ -1155,10 +1155,14 @@ export default {ConnectionQuality.addListener(CQEvents.LOCALSTATS_UPDATED,(percent, stats) => {APP.UI.updateLocalStats(percent, stats);+ // Send only the data that remote participants care about.+ let data = {+ bitrate: stats.bitrate,+ packetLoss: stats.packetLoss};try {room.broadcastEndpointMessage({type: this.commands.defaults.CONNECTION_QUALITY,- values: stats });+ values: data });} catch (e) {reportError(e);}diff --git a/modules/connectionquality/connectionquality.js b/modules/connectionquality/connectionquality.jsindex 3b24417e93..16aa155145 100644--- a/modules/connectionquality/connectionquality.js+++ b/modules/connectionquality/connectionquality.js@@ -75,6 +75,9 @@ export default {eventEmitter.emit(CQEvents.REMOTESTATS_UPDATED, id, null, null);return;}+ // Use only the fields we need+ data = {bitrate: data.bitrate, packetLoss: data.packetLoss};+remoteStats[id] = data;var newVal = 100 - data.packetLoss.total;