{"id":4237,"date":"2021-11-12T17:34:12","date_gmt":"2021-11-12T09:34:12","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4237"},"modified":"2025-04-10T20:59:55","modified_gmt":"2025-04-10T12:59:55","slug":"audio-only-mode","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/android-toolkit\/audio-only-mode\/","title":{"rendered":"Audio Only Mode for Video Room: Android SDK &#8211; Video API"},"content":{"rendered":"\n<p>The <code>EnxRoom.setAudioOnlyMode()<\/code> method allows you to switch to an audio-only call where you can neither receive anybody&#8217;s video nor publish your video. You can use this method as a toggle to switch between audio-only and audio-video call. This doesn&#8217;t affect others video Streams in the Room.<\/p>\n\n\n\n<p><strong>Class<\/strong>: <code>EnxRoom<\/code><\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>publish void setAudioOnlyMode( boolean AudioOnly)<\/code> <\/p>\n\n\n\n<p><strong>Parameter<\/strong>: <\/p>\n\n\n\n<p><code>AudioOnly<\/code> &#8211; Boolean. Set to <em>true<\/em> to switch to audio-only call and <em>false<\/em> to switch to audio-video call.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">room.setAudioOnlyMode(true);   \/\/ Switch to Audio-Only call\nroom.setAudioOnlyMode(false);  \/\/ Switch back to Audio-Video call<\/pre>\n\n\n\n<p><strong>Error Codes \/ Exceptions<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Code<\/strong><\/td><td><strong>Error Description<\/strong><\/td><\/tr><tr><td>5051<\/td><td>Repeated setAudioOnlyMode() call made while a previous Audio-only request is in process. <\/td><\/tr><tr><td>5052<\/td><td>Repeated setAudioOnlyMode() call made while Audio-Only mode already active. <\/td><\/tr><tr><td>5053<\/td><td>Repeated setAudioOnlyMode() call made while Audio-Video mode already active.<\/td><\/tr><tr><td>5054<\/td><td>Repeated setAudioOnlyMode() call made while a previous Audio-Video request is in process.<\/td><\/tr><\/tbody><\/table><\/figure>\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=\"..\/bitrate-status-of-client\/\">Get Bitrate Status of Client<\/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=\"\/developer\/video-api\/client-api\/android-toolkit\/pre-call-test\/\"><\/a><a href=\"\/developer\/video-api\/client-api\/android-toolkit\/pre-call-test\/\">Pre-Call Test<\/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>The EnxRoom.setAudioOnlyMode() method allows you to switch to an audio-only call where you can neither receive anybody&#8217;s video nor publish your video. You can use this method as a toggle to switch between audio-only and audio-video call. This doesn&#8217;t affect others video Streams in the Room. Class: EnxRoom Method: publish void setAudioOnlyMode( boolean AudioOnly) Parameter: AudioOnly &#8211; Boolean. Set to true to switch to audio-only call and false to switch&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3740,"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 EnxRoom.setAudioOnlyMode() method allows you to switch to an audio-only call where you can neither receive anybody&#8217;s video nor publish your video. You can use this method as a toggle to switch between audio-only and audio-video call. This doesn&#8217;t affect others video Streams in the Room. Class: EnxRoom Method: publish void setAudioOnlyMode( boolean AudioOnly) Parameter:&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4237"}],"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=4237"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4237\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3740"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}