{"id":4862,"date":"2021-12-10T17:49:19","date_gmt":"2021-12-10T09:49:19","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4862"},"modified":"2022-04-08T19:28:47","modified_gmt":"2022-04-08T11:28:47","slug":"hard-muting","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/cordova-toolkit\/hard-muting\/","title":{"rendered":"Hard Muting: Cordova\/Ionic SDK &#8211; Video API"},"content":{"rendered":"\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 a 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>window.EnxRtc.hardMute()<\/code>&nbsp;method; and to disable you may use<code>&nbsp;window.EnxRtc.hardUnMute()&nbsp;<\/code>method. All participants of the  room are notified with &nbsp; <code>onReceivedMuteRoom<\/code> and <code>onReceivedUnMuteRoom<\/code> listeners; whereas the Moderator is notified with  <code>onMutedRoom<\/code> and <code>onUnMutedRoom<\/code> event listeners respectively.  <\/p>\n\n\n\n<p><strong>Methods:<\/strong><\/p>\n\n\n\n<ul><li> <code>hardMute()<\/code> &#8211; to hard mute room<\/li><li> <code>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\">\/\/ To hard-mute Room\nwindow.EnxRtc.hardMute();\n\n\/\/ Add Event Listeners\n\/\/ Moderator is acknowledged that Room has been muted.\nwindow.EnxRtc.addEventListner(\"onHardMuted\", function\n(data)\n{\nconsole.log(JSON.stringify(data.data));\n});\n\/\/ All Participants are notified that Room has been muted.\nwindow.EnxRtc.addEventListner(\"onReceivedHardMute\",\nfunction (data)\n{\nconsole.log(JSON.stringify(data.data));\n});\n\n\/\/ To hard-unmute Room\nwindow.EnxRtc.hardUnMute();\n\n\/\/ Add Event Listeners\n\/\/ Moderator is acknowledged that Room has been unmuted.\nwindow.EnxRtc.addEventListner(\"onHardUnMuted\", function\nconsole.log(JSON.stringify(data.data));\n(data)\n{});\n\/\/ All Participants are notified that Room has been unmuted.\nwindow.EnxRtc.addEventListner(\"onReceivedHardUnMute\",\nfunction (data)\n{\nconsole.log(JSON.stringify(data.data));\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\/\"><\/a><a href=\"..\/room-entry-restriction\/\">Lock \/ Unlock Room<\/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>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 a hard-mute state will also be inaudible. To put room into hard mute state, you may use&nbsp;window.EnxRtc.hardMute()&nbsp;method; and to disable you may use&nbsp;window.EnxRtc.hardUnMute()&nbsp;method. All participants of the room are notified with &nbsp;&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3719,"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":"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 a hard-mute state will also be inaudible. To put room into hard mute state, you may use&nbsp;window.EnxRtc.hardMute()&nbsp;method;&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4862"}],"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=4862"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4862\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3719"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}