{"id":4749,"date":"2021-12-06T20:32:36","date_gmt":"2021-12-06T12:32:36","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4749"},"modified":"2022-04-11T13:27:33","modified_gmt":"2022-04-11T05:27:33","slug":"hard-muting","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/flutter-toolkit\/hard-muting\/","title":{"rendered":"Hard Muting: Flutter SDK &#8211; Video API"},"content":{"rendered":"\n<h4>Table of Contents<\/h4>\n\n\n\n<ul><li><a href=\"#hard-mute-unmute-room\">Hard Mute \/ Unmute Room<\/a><\/li><li><a href=\"#hard-mute-unmute-participants\">Hard Mute \/ Unmute Participant<\/a><\/li><\/ul>\n\n\n\n<a name=\"hard-mute-unmute-room\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>Hard Mute \/ Unmute Room<\/h2>\n\n\n\n<p>Moderator may put the room in a hard-mute state when he wishes no-one else to be audible in the Room. Any new user who joins the room when the room is in hard-mute state will also be inaudible.  <\/p>\n\n\n\n<p>To put room into hard mute state, you may use&nbsp;<code>hardMute()<\/code>&nbsp;method; and to disable you may use&nbsp;<code>hardUnMute()&nbsp;<\/code>method. All participant of the  room are notified with &nbsp; <code>onReceivedHardMute<\/code> and  <code>onReceivedHardUnMute<\/code>event listeners; whereas the Moderator is notified with  <code>onHardMuted<\/code> and <code>onHardUnMuted<\/code>event listeners respectively.  <\/p>\n\n\n\n<p><strong>Methods:<\/strong><\/p>\n\n\n\n<ul><li> <code>static Future&lt;void&gt; hardMute()<\/code> &#8211; to hard mute room<\/li><li> <code>static Future&lt;void&gt; hardUnMute()<\/code> &#8211; to hard unmute room<\/li><\/ul>\n\n\n\n<p><strong>Callbacks:<\/strong><\/p>\n\n\n\n<ul><li><code>onReceivedMuteRoom<\/code>&nbsp; &#8211; To all participants on hard-muting Room<\/li><li><code>onReceivedUnMuteRoom<\/code>&nbsp; &#8211; To all participants on hard-unmuting Room<\/li><li><code>onMutedRoom<\/code>&nbsp; &#8211; To notify Moderator that Room is hard-muted<\/li><li><code>onUnMutedRoom<\/code> &#8211; To notify Moderator that  Room is hard-unmuted<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">EnxRtc.hardMute(); \/\/ To hard-mute Room\nEnxRtc.hardUnMute(); \/\/ To hard-unmute Room\n\nEnxRtc.onHardMuted= (Map&lt;dynamic, dynamic&gt; map) {\n    \/\/ Moderators are notified that Room is hard-muted  \n};\n\nEnxRtc.onReceivedHardMute= (Map&lt;dynamic, dynamic&gt; map) {\n    \/\/ Participants are notified that Room is hard-muted   \n};\n\nEnxRtc.onHardUnMuted = (Map&lt;dynamic, dynamic&gt; map) {\n    \/\/ Moderators are notified that Room is hard-unmuted        \n};\n\nEnxRtc.onReceivedHardUnMute = (Map&lt;dynamic, dynamic&gt; map) {\n     \/\/ Participants are notified that Room is hard-unmuted   \n};\n<\/pre>\n\n\n\n<a name=\"hard-mute-unmute-participants\"><\/a>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>Hard Mute \/ Unmute Participant<\/h2>\n\n\n\n<p>Moderator may enforce hard-mute on any selected participant in the room. The affected participant will not be able to talk or may not be able to publish his video until the imposed state is lifted.<\/p>\n\n\n\n<p>The <code>EnxRtc.hardMuteAudio()<\/code> and <code>EnxRtc.hardMuteVideo()<\/code> methods allow the Moderator to hard-mute a Participant&#8217;s Audio and Video Streams respectively. The affected Participant cannot unmute their Audio or Video Streams. The Moderator can unmute the Participant&#8217;s Audio or Video Streams using <code>EnxRtc.hardUnMuteAudio()<\/code> and <code>EnxRtc.hardUnMuteVideo()<\/code> methods respectively. <\/p>\n\n\n\n<p><strong>Class: <\/strong><code>EnxRtc<\/code><\/p>\n\n\n\n<p><strong>Methods:<\/strong><\/p>\n\n\n\n<ul><li> <code>static Future&lt;void&gt; hardMuteAudio(String clientId)<\/code> &#8211; to hard mute audio.<\/li><li> <code>static Future&lt;void&gt; hardMuteVideo(String clientId)<\/code> &#8211; to hard mute video.<\/li><li> <code>static Future&lt;void&gt; hardUnMuteAudio(String clientId)<\/code> &#8211; to hard unmute audio.<\/li><li> <code>static Future&lt;void&gt; hardUnMuteVideo(String clientId)<\/code> &#8211; to hard unmute video.<\/li><\/ul>\n\n\n\n<p><strong>Callbacks:<\/strong><\/p>\n\n\n\n<ul><li><code>onHardMutedAudio<\/code> &#8211; Notification to the moderator to notify about user\u2019s hard-muted audio.<\/li><li><code>onHardUnMutedAudio<\/code> &#8211; Notification to the moderator to notify about user\u2019s hard-unmuted audio.<\/li><li><code>onHardMutedVideo<\/code> &#8211;  Notification to the moderator to notify about user\u2019s hard-muted video.<\/li><li><code>onHardUnMutedVideo<\/code> &#8211; Notification to the moderator to notify about user\u2019s hard-unmuted video.<\/li><li><code>onReceivedHardMuteAudio<\/code> &#8211; Notification to all the participants in the Room when a user&#8217;s Audio is hard-muted.<\/li><li><code>onReceivedHardUnMuteAudio<\/code> &#8211; Notification to all the participants in the Room when a user&#8217;s Audio is lifted off the hard-mute state.<\/li><li><code>onReceivedHardMuteVideo<\/code> &#8211;  Notification to all the participants in the Room when a user&#8217;s Video is hard-muted.<\/li><li><code>onReceivedHardUnMuteVideo<\/code> &#8211; Notification to all the participants in the Room when a user&#8217;s Video is lifted off the hard-mute state.<\/li><\/ul>\n\n\n\n<pre id=\"block-81a1a8d0-4166-4304-b281-f43d80075355\" class=\"wp-block-preformatted\">EnxRtc.hardMuteAudio(clientId)    \/\/ To hard-mute user's Audio Stream\nEnxRtc.hardUnMuteAudio(clientId)  \/\/ To hard-unmute user's Audio Stream\n\nEnxRtc.onHardMutedAudio=(Map&lt;dynamic, dynamic&gt; map){\n\/\/ Your audio is hard-muted\n };\nEnxRtc.onHardUnMutedAudio=(Map&lt;dynamic, dynamic&gt; map){\n\/\/ Your audio is hard-unmuted\n };\nEnxRtc.onReceivedHardMuteAudio=(Map&lt;dynamic, dynamic&gt; map){\n\/\/ A User's audio is hard-unmuted - to all\n };\nEnxRtc.onReceivedHardUnMuteAudio=(Map&lt;dynamic, dynamic&gt; map){\n\/\/ A User's audio is hardmuted - to all\n \n};\n\n\/\/\nEnxRtc.hardMuteVideo(clientId).  \/\/ To hard-mute user's Video Stream\n\nEnxRtc.hardUnMuteVideo(clientId). \/\/\/\/ To hard-unmute user's Video Stream\nEnxRtc.onHardMutedVideo=(Map&lt;dynamic, dynamic&gt; map){\n\/\/ Your video is hard-muted\n\n  };\nEnxRtc.onHardUnMutedVideo=(Map&lt;dynamic, dynamic&gt; map){\n\/\/ Your video is hard-unmuted\n };\nEnxRtc.onReceivedHardMuteVideo=(Map&lt;dynamic, dynamic&gt; map){\n\/\/ A User's video is hard-unmuted - to all\n };\nEnxRtc.onReceivedHardUnMuteVideo=(Map&lt;dynamic, dynamic&gt; map){\n\/\/ A User's video is hardmuted - to all\n \n };<\/pre>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>\u2190 <a href=\"..\/recording\/\"><\/a><a href=\"..\/recording\/\">Record Session<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><a href=\"..\/\">Index<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-right\"><a href=\"..\/room-entry-restriction\/\">Room Entry Restriction<\/a> \u2192<a href=\"\/developer\/how-to-use\/\"><\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Table of Contents Hard Mute \/ Unmute Room Hard Mute \/ Unmute Participant Hard Mute \/ Unmute Room Moderator may put the room in a hard-mute state when he wishes no-one else to be audible in the Room. Any new user who joins the room when the room is in hard-mute state will also be inaudible. To put room into hard mute state, you may use&nbsp;hardMute()&nbsp;method; and to disable you&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3755,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ub_ctt_via":""},"featured_image_src":null,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"featured":false,"featured-large":false},"uagb_author_info":{"display_name":"vcxdevwpadmin","author_link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/author\/vcxdevwpadmin\/"},"uagb_comment_info":0,"uagb_excerpt":"Table of Contents Hard Mute \/ Unmute Room Hard Mute \/ Unmute Participant Hard Mute \/ Unmute Room Moderator may put the room in a hard-mute state when he wishes no-one else to be audible in the Room. Any new user who joins the room when the room is in hard-mute state will also be&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4749"}],"collection":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/comments?post=4749"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4749\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3755"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}