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
Set receiver video constraint in load-test script, as-if tile view. (#8567)
Jonathan Lennox4beca0d5ddbf
diff --git a/resources/load-test/load-test-participant.js b/resources/load-test/load-test-participant.jsindex 893d050846..a9a359d0e0 100644--- a/resources/load-test/load-test-participant.js+++ b/resources/load-test/load-test-participant.js@@ -29,6 +29,8 @@ let numParticipants = 1;let localTracks = [];const remoteTracks = {};+let maxFrameHeight = 0;+window.APP = {conference: {getStats() {@@ -66,11 +68,32 @@ window.APP = {}};+/**+ * Simple emulation of jitsi-meet's screen layout behavior+ */+function updateMaxFrameHeight() {+ let newMaxFrameHeight;++ if (numParticipants <= 2) {+ newMaxFrameHeight = 720;+ } else if (numParticipants <= 4) {+ newMaxFrameHeight = 360;+ } else {+ newMaxFrameHeight = 180;+ }++ if (room && maxFrameHeight !== newMaxFrameHeight) {+ maxFrameHeight = newMaxFrameHeight;+ room.setReceiverVideoConstraint(maxFrameHeight);+ }+}+/****/function setNumberOfParticipants() {$('#participants').text(numParticipants);+ updateMaxFrameHeight();}/**@@ -165,6 +188,7 @@ function onConnectionSuccess() {});room.on(JitsiMeetJS.events.conference.USER_LEFT, onUserLeft);room.join();+ updateMaxFrameHeight();}/**