Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(share-video): stop video from the participant list

Mihaela Dumitru4ed7211286fb
diff --git a/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js b/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js
index 379fe0f9cc..5d76bd6023 100644
--- a/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js
+++ b/react/features/participants-pane/components/web/MeetingParticipantContextMenu.js
@@ -34,6 +34,7 @@ import { sendParticipantToRoom } from '../../../breakout-rooms/actions';
import { getBreakoutRooms, getCurrentRoomId } from '../../../breakout-rooms/functions';
import { openChatById } from '../../../chat/actions';
import { setVolume } from '../../../filmstrip/actions.web';
+import { stopSharedVideo } from '../../../shared-video/actions.any';
import { GrantModeratorDialog, KickRemoteParticipantDialog, MuteEveryoneDialog } from '../../../video-menu';
import { VolumeSlider } from '../../../video-menu/components/web';
import MuteRemoteParticipantsVideoDialog from '../../../video-menu/components/web/MuteRemoteParticipantsVideoDialog';
@@ -250,9 +251,10 @@ class MeetingParticipantContextMenu extends Component<Props> {
* @returns {void}
*/
_onStopSharedVideo() {
- const { dispatch } = this.props;
+ const { dispatch, onSelect } = this.props;
- dispatch(this._onStopSharedVideo());
+ onSelect(true);
+ dispatch(stopSharedVideo());
}
_onMuteEveryoneElse: () => void;