---
description: >-
  The objective is to enable/disable the moderator to apply a hard Mute of video
  to all/single participant
---

# Hard Mute Video

* Set Video disable state for a selected participant in the room using API **VidyoConnectorDisableVideoForParticipant**

**Example to disable video of a participant:**

retValue = GetConnectorInstance.DisableVideoForParticipant(participant, false, "HardUnmuteVideoForParticipant");

return retval;

**Example to enable video of a participant:**

retValue = GetConnectorInstance.DisableVideoForParticipant(participant, true, "HardMuteVideoForParticipant");

return retval;

* Set video disable state for all participants in the room using API **VidyoConnectorDisableVideoForAll**

**Example:**&#x20;

retValue = GetConnectorInstance.DisableVideoForAll(true, "HardMuteVideoForAllEnable");
