{"id":4780,"date":"2021-12-07T20:15:48","date_gmt":"2021-12-07T12:15:48","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4780"},"modified":"2022-04-07T20:12:24","modified_gmt":"2022-04-07T12:12:24","slug":"update-stream-configuration","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/cordova-toolkit\/update-stream-configuration\/","title":{"rendered":"Update Stream Configuration: Cordova\/Ionic SDK &#8211; Video API"},"content":{"rendered":"\n<p>If you like to re-configure your stream by adding new or udpating existing specification parameters of a stream. Please use&nbsp;<code>window.EnxRtc.updateConfiguration()<\/code>&nbsp;method to update the parameters of a stream. Both remote and local streams can use this method of updating the stream parameters.<\/p>\n\n\n\n<p><strong>Method<\/strong>:&nbsp;<code>updateConfiguration( configurationOptions, successCallback, errorCallback )<\/code><\/p>\n\n\n\n<p><strong>Parameters:&nbsp;<\/strong><\/p>\n\n\n\n<ul><li><code>@param {JSON} configurationOptions<\/code><\/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\">var videoQualityOptions = {\nmaxVideoBW: \u201c900\u201d,\nminVideoBW: \u201c150\u201d,\nmaxAudioBW: \u201c150\u201d,\nminAudioBW: \u201c150\u201d\n};\nwindow.EnxRtc.updateConfiguration(configuarationOptions,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=\"..\/mute-audio-video-stream\/\">Mute-Unmute Audio Video<\/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=\"..\/mute-unmute-audio-of-subscribed-streams\/\"><\/a><a href=\"..\/mute-unmute-audio-of-subscribed-streams\/\">Mute \/ Unmute Audio of Subscribed Streams<\/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 like to re-configure your stream by adding new or udpating existing specification parameters of a stream. Please use&nbsp;window.EnxRtc.updateConfiguration()&nbsp;method to update the parameters of a stream. Both remote and local streams can use this method of updating the stream parameters. Method:&nbsp;updateConfiguration( configurationOptions, successCallback, errorCallback ) Parameters:&nbsp; @param {JSON} configurationOptions @param {CallableFunction} successCallback @param {CallableFunction} errorCallback var videoQualityOptions = { maxVideoBW: \u201c900\u201d, minVideoBW: \u201c150\u201d, maxAudioBW: \u201c150\u201d, minAudioBW: \u201c150\u201d }; window.EnxRtc.updateConfiguration(configuarationOptions,function&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 like to re-configure your stream by adding new or udpating existing specification parameters of a stream. Please use&nbsp;window.EnxRtc.updateConfiguration()&nbsp;method to update the parameters of a stream. Both remote and local streams can use this method of updating the stream parameters. Method:&nbsp;updateConfiguration( configurationOptions, successCallback, errorCallback ) Parameters:&nbsp; @param {JSON} configurationOptions @param {CallableFunction} successCallback @param {CallableFunction}&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4780"}],"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=4780"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4780\/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=4780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}