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
ref(large-video): use componentDidUpdate to change background image
Leonard Kim85f487cca59a
diff --git a/react/features/large-video/components/LargeVideoBackground.web.js b/react/features/large-video/components/LargeVideoBackground.web.jsindex ee502666f7..d9f4c733f3 100644--- a/react/features/large-video/components/LargeVideoBackground.web.js+++ b/react/features/large-video/components/LargeVideoBackground.web.js@@ -117,17 +117,15 @@ export class LargeVideoBackground extends Component<Props> {* Starts or stops the interval to update the image displayed in the canvas.** @inheritdoc- * @param {Object} nextProps - The read-only React {@code Component} props- * with which the new instance is to be initialized.*/- componentWillReceiveProps(nextProps: Props) {- if (this.props.hidden && !nextProps.hidden) {+ componentDidUpdate(prevProps: Props) {+ if (prevProps.hidden && !this.props.hidden) {this._clearCanvas();this._setUpdateCanvasInterval();}- if ((!this.props.hidden && nextProps.hidden)- || !nextProps.videoElement) {+ if ((!prevProps.hidden && this.props.hidden)+ || !this.props.videoElement) {this._clearCanvas();this._clearUpdateCanvasInterval();}