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
rn: fixes the bug on shared video not stopping when the user leaves the conferences
Titus-Andrei Moldovan5811e0476c55
diff --git a/react/features/youtube-player/middleware.js b/react/features/youtube-player/middleware.jsindex d193a639a4..50108bd966 100644--- a/react/features/youtube-player/middleware.js+++ b/react/features/youtube-player/middleware.js@@ -28,6 +28,7 @@ MiddlewareRegistry.register(store => next => action => {const conference = getCurrentConference(state);const localParticipantId = getLocalParticipant(state)?.id;const { videoId, status, ownerId, time } = action;+ const { ownerId: stateOwnerId, videoId: stateVideoId } = state['features/youtube-player'];switch (action.type) {case TOGGLE_SHARED_VIDEO:@@ -37,8 +38,9 @@ MiddlewareRegistry.register(store => next => action => {dispatch(setSharedVideoStatus('', 'stop', 0, ''));break;case PARTICIPANT_LEFT:- if (action.participant.id === action.ownerId) {+ if (action.participant.id === stateOwnerId) {dispatch(setSharedVideoStatus('', 'stop', 0, ''));+ dispatch(participantLeft(stateVideoId, conference));}break;case SET_SHARED_VIDEO_STATUS: