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
fix(Filmstrip): Send only visible endpoints to jvb
Hristo Terezov619acaca2448
diff --git a/react/features/filmstrip/components/web/Filmstrip.js b/react/features/filmstrip/components/web/Filmstrip.jsindex ff9c6d82f2..e092e2fb1c 100644--- a/react/features/filmstrip/components/web/Filmstrip.js+++ b/react/features/filmstrip/components/web/Filmstrip.js@@ -284,10 +284,10 @@ class Filmstrip extends PureComponent <Props> {* @param {Object} data - Information about the rendered items.* @returns {void}*/- _onListItemsRendered({ overscanStartIndex, overscanStopIndex }) {+ _onListItemsRendered({ visibleStartIndex, visibleStopIndex }) {const { dispatch } = this.props;- dispatch(setVisibleRemoteParticipants(overscanStartIndex, overscanStopIndex));+ dispatch(setVisibleRemoteParticipants(visibleStartIndex, visibleStopIndex));}_onGridItemsRendered: Object => void;@@ -299,14 +299,14 @@ class Filmstrip extends PureComponent <Props> {* @returns {void}*/_onGridItemsRendered({- overscanColumnStartIndex,- overscanColumnStopIndex,- overscanRowStartIndex,- overscanRowStopIndex+ visibleColumnStartIndex,+ visibleColumnStopIndex,+ visibleRowStartIndex,+ visibleRowStopIndex}) {const { _columns, dispatch } = this.props;- const startIndex = (overscanRowStartIndex * _columns) + overscanColumnStartIndex;- const endIndex = (overscanRowStopIndex * _columns) + overscanColumnStopIndex;+ const startIndex = (visibleRowStartIndex * _columns) + visibleColumnStartIndex;+ const endIndex = (visibleRowStopIndex * _columns) + visibleColumnStopIndex;dispatch(setVisibleRemoteParticipants(startIndex, endIndex));}@@ -345,6 +345,7 @@ class Filmstrip extends PureComponent <Props> {initialScrollTop = { 0 }itemKey = { this._gridItemKey }onItemsRendered = { this._onGridItemsRendered }+ overscanRowCount = { 1 }rowCount = { _rows }rowHeight = { _thumbnailHeight + TILE_VERTICAL_MARGIN }width = { _filmstripWidth }>@@ -363,6 +364,7 @@ class Filmstrip extends PureComponent <Props> {itemKey: this._listItemKey,itemSize: 0,onItemsRendered: this._onListItemsRendered,+ overscanCount: 1,width: _filmstripWidth,style: {willChange: 'auto'