{"id":4338,"date":"2021-11-17T18:03:47","date_gmt":"2021-11-17T10:03:47","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4338"},"modified":"2022-04-11T14:00:07","modified_gmt":"2022-04-11T06:00:07","slug":"update-stream-configuration","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/ios-toolkit\/update-stream-configuration\/","title":{"rendered":"Update Stream Configuration: iOS SDK &#8211; Video API"},"content":{"rendered":"\n<p><strong>Availability<\/strong>: <em>iOS 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>-(void)updateConfiguration:(NSDictionary *_Nonnull) data<\/code><\/p>\n\n\n\n<p><strong>Parameters<\/strong>:&nbsp;<code>data<\/code>\u2013 New Stream configuration options Dictionary Object.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> -(void)updateConfiguration:(NSDictionary *_Nonnull) data;\n\n\/\/ The data Dictionary object may be like the following\n\/*\ndata = {\n     @\"maxVideoBW\": @\"900\",\n     @\"minVideoBW\": @\"150\",\n     @\"maxAudioBW\": @\"150\",\n     @\"minAudioBW\":@\"150\"\n };\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=\"..\/pre-call-test\/\"><\/a><a href=\"..\/pre-call-test\/\">Pre-Call 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=\"..\/enxrtc\/\">EnxRtc \u2013 Base Class<\/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: iOS 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;-(void)updateConfiguration:(NSDictionary *_Nonnull) data Parameters:&nbsp;data\u2013 New Stream configuration options Dictionary Object. -(void)updateConfiguration:(NSDictionary *_Nonnull) data; \/\/ The data Dictionary object may be like the following \/* data = { @&#8221;maxVideoBW&#8221;: @&#8221;900&#8243;, @&#8221;minVideoBW&#8221;: @&#8221;150&#8243;, @&#8221;maxAudioBW&#8221;: @&#8221;150&#8243;, @&#8221;minAudioBW&#8221;:@&#8221;150&#8243; }; *\/&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3732,"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: iOS 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;-(void)updateConfiguration:(NSDictionary *_Nonnull) data Parameters:&nbsp;data\u2013 New Stream configuration options Dictionary Object. -(void)updateConfiguration:(NSDictionary *_Nonnull) data; \/\/ The data Dictionary object may be like&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4338"}],"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=4338"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4338\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3732"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}