{"id":4804,"date":"2021-12-08T18:52:50","date_gmt":"2021-12-08T10:52:50","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4804"},"modified":"2022-04-08T18:51:03","modified_gmt":"2022-04-08T10:51:03","slug":"audio-only-mode","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/cordova-toolkit\/audio-only-mode\/","title":{"rendered":"Audio Only Mode for Video Room: Cordova\/Ionic SDK &#8211; Video SDK"},"content":{"rendered":"\n<p>If you want to change to an audio-only call, i.e. you neither want to receive anyone&#8217;s video nor want to publish your video; you may use <code>window.EnxRtc.setAudioOnlyMode()<\/code> method. This method acts as a toggle to switch between audio-only and audio-video calls. <\/p>\n\n\n\n<p>This opt-in is only for the specific End-Point and doesn&#8217;t affect others in the room.<\/p>\n\n\n\n<p><strong>Method:<\/strong> <code>setAudioOnlyMode( audioOnly, successCallback, errorCallback )<\/code><\/p>\n\n\n\n<p><strong>Parameter<\/strong>: <\/p>\n\n\n\n<ul><li><code>@param {boolean} audioOnly <\/code>&#8211; <em>true<\/em>: audio-only call, <em>false<\/em>: audio-video call<\/li><li><code>@param {CallableFunction} successCallback<\/code><\/li><li><code>@param {CallableFunction} errorCallback<\/code><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">window.EnxRtc.setAudioOnlyMode(audioOnly ,function (data) {\nconsole.log('Excelsior success! ' + JSON.stringify(data.data));\n}, function (err) {\nconsole.log('Uh oh\u2026 error' + JSON.stringify(err));\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=\"..\/live-media-statistics\/\"><\/a><a href=\"..\/live-media-statistics\/\">Get Live Media Statistics<\/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=\"..\/handle-application-switch\/\">Handle Application Switch<\/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>If you want to change to an audio-only call, i.e. you neither want to receive anyone&#8217;s video nor want to publish your video; you may use window.EnxRtc.setAudioOnlyMode() method. This method acts as a toggle to switch between audio-only and audio-video calls. This opt-in is only for the specific End-Point and doesn&#8217;t affect others in the room. Method: setAudioOnlyMode( audioOnly, successCallback, errorCallback ) Parameter: @param {boolean} audioOnly &#8211; true: audio-only call,&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":"If you want to change to an audio-only call, i.e. you neither want to receive anyone&#8217;s video nor want to publish your video; you may use window.EnxRtc.setAudioOnlyMode() method. This method acts as a toggle to switch between audio-only and audio-video calls. This opt-in is only for the specific End-Point and doesn&#8217;t affect others in the&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4804"}],"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=4804"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4804\/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=4804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}