*** id: 30438913-b5fd-4b50-91b1-00dee9667d36 title: videoMute slug: /node/reference/video/room-session/video-mute description: videoMute method for the RoomSession class. max-toc-depth: 3 ---------------- [roomsession-41]: /docs/server-sdk/v4/node/reference/video/room-session ### videoMute * **videoMute**(`params`): `Promise` Puts the video of a given member on mute. Participants will see a mute image instead of the video stream. #### Parameters Object containing the parameters of the method. ID of the member to mute. #### Returns `Promise` #### Example In this example, we wait for a room to start and then wait for a second member to join the room. When a second member joins the room, we mute the video of that member. This example assumes that there is a [`RoomSession`][roomsession-41] already active and that members are joining the room. ```js import { SignalWire } from "@signalwire/realtime-api"; // Initialize the SignalWire client const client = await SignalWire({ project: "ProjectID Here", token: "Token Here" }); // Access video client from the main client const videoClient = client.video; // Setup listener for when a room starts await videoClient.listen({ onRoomStarted: async (roomSession) => { console.log("Room started", roomSession.displayName); await roomSession.listen({ onMemberJoined: (member) => { console.log("Member joined", member.name); // Video mute the member roomSession.videoMute({ memberId: member.id, }) }, onMemberUpdated: (member) => { console.log("Member mute status updated", member.name, member.videoMuted); }, }); } }); ```