{"id":4863,"date":"2021-12-10T17:59:54","date_gmt":"2021-12-10T09:59:54","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4863"},"modified":"2022-04-08T15:54:37","modified_gmt":"2022-04-08T07:54:37","slug":"room-entry-restriction","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/cordova-toolkit\/room-entry-restriction\/","title":{"rendered":"Room Entry Restriction: Cordova\/Ionic SDK &#8211; Video API"},"content":{"rendered":"\n<h2>Lock \/ Unlock Room<\/h2>\n\n\n\n<p>Moderator may lock the Room forbidding any new person from joining the Session. To allow subsequent users to join the session, Moderator needs to unlock the Room.<\/p>\n\n\n\n<p>To set the room into Lock State, you use&nbsp;<code>window.EnxRtc.lockRoom()<\/code>&nbsp;method; and to unlock the Room you use&nbsp;window.EnxRtc.<code>unLockRoom()&nbsp;<\/code>method.<\/p>\n\n\n\n<p><strong>Methods:<\/strong><\/p>\n\n\n\n<ul><li> <code>lockRoom()<\/code> \u2013 To lock Room<\/li><li> <code>unLockRoom()<\/code> \u2013 To unlock Room<\/li><\/ul>\n\n\n\n<p><strong>Event Listeners:<\/strong><\/p>\n\n\n\n<ul><li><code>onAckLockRoom:&nbsp;<\/code>&nbsp;To acknowledge moderator that the Room has been locked<\/li><li><code>onLockedRoom:<\/code>&nbsp;To notify all participants that the room has been locked<\/li><li><code>onAckUnLockRoom:<\/code>&nbsp;To acknowledge moderator that the Room has been unlocked<\/li><li><code>onUnLockedRoom:<\/code>&nbsp;To notify all participants that the room has been unlocked<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ To lock Room\nwindow.EnxRtc.lockRoom();\n\n\/\/ Add Event Listeners\n\/\/ Moderator is acknowledged that room has been locked.\nwindow.EnxRtc.addEventListner(\"onAckLockRoom\", function\n(data)\n{\nconsole.log(JSON.stringify(data.data));\n});\n\/\/ Participants are notified that room has been locked.\nwindow.EnxRtc.addEventListner(\"onLockedRoom\",\nfunction (data)\n{\nconsole.log(JSON.stringify(data.data));\n});\n\n\/\/ TO unlock Room\nwindow.EnxRtc.unLockRoom();\n\n\/\/ Add Event Listeners\n\/\/ Moderator is acknowledged that room has been unlocked.\nwindow.EnxRtc.addEventListner(\"onAckUnLockRoom\",\nfunction\n(data)\n{\nconsole.log(JSON.stringify(data.data));\n});\n\/\/ Participants are notified that room has been unlocked.\nwindow.EnxRtc.addEventListner(\"onUnLockedRoom\",\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=\"..\/hard-muting\/\"><\/a><a href=\"..\/hard-muting\/\">Hard Mute \/ Unmute Room<\/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=\"..\/participant-role-switch\/\"><\/a><a href=\"..\/participant-role-switch\/\">Change Participant\u2019s Role<\/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>Lock \/ Unlock Room Moderator may lock the Room forbidding any new person from joining the Session. To allow subsequent users to join the session, Moderator needs to unlock the Room. To set the room into Lock State, you use&nbsp;window.EnxRtc.lockRoom()&nbsp;method; and to unlock the Room you use&nbsp;window.EnxRtc.unLockRoom()&nbsp;method. Methods: lockRoom() \u2013 To lock Room unLockRoom() \u2013 To unlock Room Event Listeners: onAckLockRoom:&nbsp;&nbsp;To acknowledge moderator that the Room has been locked onLockedRoom:&nbsp;To&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":"Lock \/ Unlock Room Moderator may lock the Room forbidding any new person from joining the Session. To allow subsequent users to join the session, Moderator needs to unlock the Room. To set the room into Lock State, you use&nbsp;window.EnxRtc.lockRoom()&nbsp;method; and to unlock the Room you use&nbsp;window.EnxRtc.unLockRoom()&nbsp;method. Methods: lockRoom() \u2013 To lock Room unLockRoom() \u2013&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4863"}],"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=4863"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4863\/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=4863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}