{"id":4050,"date":"2021-11-03T15:41:10","date_gmt":"2021-11-03T07:41:10","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4050"},"modified":"2022-02-28T22:56:00","modified_gmt":"2022-02-28T14:56:00","slug":"audio-only-mode","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/web-toolkit\/audio-only-mode\/","title":{"rendered":"Audio Only Mode for Video Room: Web SDK &#8211; Video API"},"content":{"rendered":"\n<p>The&nbsp;<code>EnxRoom.setAudioOnlyMode()<\/code>&nbsp;method allows you to switch to an audio-only call where you can neither receive anybody\u2019s video nor publish your video. You can use this method as a toggle to switch between audio-only and audio-video call. This doesn\u2019t affect other&#8217;s video Streams or ability to publish\/receive Screen-Share in the Room.<\/p>\n\n\n\n<p><strong>Method<\/strong>:&nbsp;<code>EnxRoom.setAudioOnlyMode( boolean AudioOnly)<\/code><\/p>\n\n\n\n<p><strong>Parameter<\/strong>: <\/p>\n\n\n\n<p><code>AudioOnly<\/code> &#8211; <code>Boolean<\/code>. Set to&nbsp;<em>true<\/em>&nbsp;to switch to audio-only call and&nbsp;<em>false<\/em>&nbsp;to switch to audio-video call.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">room.setAudioOnlyMode(true);   \/\/ Switched to Audio-Only call\nroom.setAudioOnlyMode(false);  \/\/ Switched back to Audio-Video call<\/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=\"..\/take-image-snapshot\/\">Take Snapshot<\/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=\"..\/enxrtc\/\"><\/a><a href=\"..\/enxrtc\/\">EnxRtc \u2013 The Base Class<\/a> \u2192 <\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;EnxRoom.setAudioOnlyMode()&nbsp;method allows you to switch to an audio-only call where you can neither receive anybody\u2019s video nor publish your video. You can use this method as a toggle to switch between audio-only and audio-video call. This doesn\u2019t affect other&#8217;s video Streams or ability to publish\/receive Screen-Share in the Room. Method:&nbsp;EnxRoom.setAudioOnlyMode( boolean AudioOnly) Parameter: AudioOnly &#8211; Boolean. Set to&nbsp;true&nbsp;to switch to audio-only call and&nbsp;false&nbsp;to switch to audio-video call. room.setAudioOnlyMode(true); \/\/ Switched&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3724,"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":"The&nbsp;EnxRoom.setAudioOnlyMode()&nbsp;method allows you to switch to an audio-only call where you can neither receive anybody\u2019s video nor publish your video. You can use this method as a toggle to switch between audio-only and audio-video call. This doesn\u2019t affect other&#8217;s video Streams or ability to publish\/receive Screen-Share in the Room. Method:&nbsp;EnxRoom.setAudioOnlyMode( boolean AudioOnly) Parameter: AudioOnly &#8211;&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4050"}],"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=4050"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4050\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3724"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}