From 1429e83a21bd274329cd7e251fe8e7a4a36f27ed Mon Sep 17 00:00:00 2001 From: Hristo Terezov Date: Tue, 27 Aug 2024 10:28:51 -0500 Subject: [PATCH] fix(RN-video): Video not showing if disableThirdPartyRequests is true. --- .../components/ParticipantView.native.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/react/features/base/participants/components/ParticipantView.native.tsx b/react/features/base/participants/components/ParticipantView.native.tsx index 46ad03ad40a..390bbd5e930 100644 --- a/react/features/base/participants/components/ParticipantView.native.tsx +++ b/react/features/base/participants/components/ParticipantView.native.tsx @@ -53,6 +53,11 @@ interface IProps { */ _renderVideo: boolean; + /** + * Whether the shared video is enabled or not. + */ + _sharedVideoEnabled: boolean; + /** * The video Track of the participant with {@link #participantId}. */ @@ -168,6 +173,7 @@ class ParticipantView extends Component { _isConnectionInactive, _isSharedVideoParticipant, _renderVideo: renderVideo, + _sharedVideoEnabled, _videoTrack: videoTrack, disableVideo, onPress @@ -178,7 +184,7 @@ class ParticipantView extends Component { ? this.props.testHintId : `org.jitsi.meet.Participant#${this.props.participantId}`; - const renderSharedVideo = _isSharedVideoParticipant && !disableVideo; + const renderSharedVideo = _isSharedVideoParticipant && !disableVideo && _sharedVideoEnabled; return (