{"id":4224,"date":"2021-11-11T20:18:38","date_gmt":"2021-11-11T12:18:38","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4224"},"modified":"2022-04-12T18:07:15","modified_gmt":"2022-04-12T10:07:15","slug":"update-stream-configuration","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/android-toolkit\/update-stream-configuration\/","title":{"rendered":"Update Stream Configuration: Android SDK &#8211; Video API"},"content":{"rendered":"\n<p><strong>Availability:<\/strong> <em>Android SDK v.1.5.6+<\/em><\/p>\n\n\n\n<p>The <code>EnxStream.updateConfiguration()<\/code> method is used to reconfigure a Stream by adding new or updating existing attributes of the Stream. This API is applicable to both Remote and Local Streams. <\/p>\n\n\n\n<p><strong>Class<\/strong>:&nbsp;<code>EnxStream<\/code><\/p>\n\n\n\n<p><strong>Method<\/strong>:&nbsp;<code>public void updateConfiguration(JSONObject streamOpt)<\/code><\/p>\n\n\n\n<p><strong>Parameters<\/strong>:&nbsp;<code>streamOpt<\/code>\u2013 New Stream configuration options JSON Object.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">  localStream.updateConfiguration(JSONObject streamOpt); \n\n\/\/ The streamOpt JSON Object example:\n\nstreamOpt = {\n     \"maxVideoBW\": \"900\",\n     \"minVideoBW\": \"150\",\n     \"maxAudioBW\": \"150\",\n     \"minAudioBW\": \"150\"\n };<\/pre>\n\n\n\n<p><strong>Error Codes \/ Exceptions<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Code<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>5113<\/td><td>Invalid JSON Object passed as parameter.<\/td><\/tr><tr><td>5114<\/td><td>Unable to update Stream when Canvas Streaming is on. Non-Contextual Method Call. <\/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=\"..\/how-to-use\/\"><\/a><a href=\"\/developer\/video-api\/client-api\/android-toolkit\/pre-call-test\/\">Pre-Cal<\/a><a href=\"\/developer\/video-api\/client-api\/android-toolkit\/pre-call-test\/\">l<\/a><a href=\"..\/how-to-use\/\"><\/a><a href=\"\/developer\/video-api\/client-api\/android-toolkit\/pre-call-test\/\"> Test<\/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-audio-device-updates\/\"><\/a><a href=\"..\/handle-audio-device-updates\/\">Handle Audio Device Updates<\/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>Availability: Android SDK v.1.5.6+ The EnxStream.updateConfiguration() method is used to reconfigure a Stream by adding new or updating existing attributes of the Stream. This API is applicable to both Remote and Local Streams. Class:&nbsp;EnxStream Method:&nbsp;public void updateConfiguration(JSONObject streamOpt) Parameters:&nbsp;streamOpt\u2013 New Stream configuration options JSON Object. localStream.updateConfiguration(JSONObject streamOpt); \/\/ The streamOpt JSON Object example: streamOpt = { &#8220;maxVideoBW&#8221;: &#8220;900&#8221;, &#8220;minVideoBW&#8221;: &#8220;150&#8221;, &#8220;maxAudioBW&#8221;: &#8220;150&#8221;, &#8220;minAudioBW&#8221;: &#8220;150&#8221; }; Error Codes \/ Exceptions Code&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":"Availability: Android SDK v.1.5.6+ The EnxStream.updateConfiguration() method is used to reconfigure a Stream by adding new or updating existing attributes of the Stream. This API is applicable to both Remote and Local Streams. Class:&nbsp;EnxStream Method:&nbsp;public void updateConfiguration(JSONObject streamOpt) Parameters:&nbsp;streamOpt\u2013 New Stream configuration options JSON Object. localStream.updateConfiguration(JSONObject streamOpt); \/\/ The streamOpt JSON Object example: streamOpt =&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4224"}],"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=4224"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4224\/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=4224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}