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(tileview) Enlarge tiles to fill whole space (#10201)
Avram Tudor1793bf460e24
diff --git a/react/features/filmstrip/components/web/Thumbnail.js b/react/features/filmstrip/components/web/Thumbnail.jsindex 3d90285b39..6a83069f56 100644--- a/react/features/filmstrip/components/web/Thumbnail.js+++ b/react/features/filmstrip/components/web/Thumbnail.js@@ -509,13 +509,26 @@ class Thumbnail extends Component<Props, State> {* @returns {Object} - The styles for the thumbnail.*/_getStyles(): Object {- const { _height, _isHidden, _width, style, horizontalOffset } = this.props;++ const { canPlayEventReceived } = this.state;+ const {+ _height,+ _isHidden,+ _isScreenSharing,+ _participant,+ _width,+ horizontalOffset,+ style+ } = this.props;+let styles: {+ avatar: Object,thumbnail: Object,- avatar: Object+ video: Object} = {thumbnail: {},- avatar: {}+ avatar: {},+ video: {}};const avatarSize = _height / 2;@@ -525,6 +538,20 @@ class Thumbnail extends Component<Props, State> {left += horizontalOffset;}+ let videoStyles = null;++ if (!_isScreenSharing) {+ if (canPlayEventReceived || _participant.local) {+ videoStyles = {+ objectFit: _height > 320 ? 'cover' : 'contain'+ };+ } else {+ videoStyles = {+ display: 'none'+ };+ }+ }+styles = {thumbnail: {...style,@@ -537,7 +564,8 @@ class Thumbnail extends Component<Props, State> {avatar: {height: `${avatarSize}px`,width: `${avatarSize}px`- }+ },+ video: videoStyles};if (_isHidden) {@@ -836,6 +864,7 @@ class Thumbnail extends Component<Props, State> {<VideoTrackclassName = { videoTrackClassName }id = 'localVideo_container'+ style = { styles.video }videoTrack = { _videoTrack } /></span><div className = 'videocontainer__toolbar'>@@ -934,7 +963,7 @@ class Thumbnail extends Component<Props, State> {_volume = 1} = this.props;const { id } = _participant;- const { audioLevel, canPlayEventReceived } = this.state;+ const { audioLevel } = this.state;const styles = this._getStyles();const containerClassName = this._getContainerClassName();@@ -952,10 +981,6 @@ class Thumbnail extends Component<Props, State> {videoEventListeners.onCanPlay = this._onCanPlay;- const videoElementStyle = canPlayEventReceived ? null : {- display: 'none'- };-return (<spanclassName = { containerClassName }@@ -978,7 +1003,7 @@ class Thumbnail extends Component<Props, State> {eventHandlers = { videoEventListeners }id = { `remoteVideo_${videoTrackId || ''}` }muted = { true }- style = { videoElementStyle }+ style = { styles.video }videoTrack = { _videoTrack } />}<div className = 'videocontainer__background' />diff --git a/react/features/filmstrip/functions.web.js b/react/features/filmstrip/functions.web.jsindex 7d39d83b5c..d0c9ab757c 100644--- a/react/features/filmstrip/functions.web.js+++ b/react/features/filmstrip/functions.web.js@@ -215,8 +215,8 @@ export function calculateThumbnailSizeForTileView({return {- height,- width+ height: initialHeight,+ width: initialWidth};}