{"id":4806,"date":"2021-12-08T19:13:26","date_gmt":"2021-12-08T11:13:26","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4806"},"modified":"2022-04-08T18:18:53","modified_gmt":"2022-04-08T10:18:53","slug":"advance-stream-options","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/cordova-toolkit\/advance-stream-options\/","title":{"rendered":"Advance Stream Options: Cordova\/Ionic SDK &#8211; Video API"},"content":{"rendered":"\n<h4>Table of Contents<\/h4>\n\n\n\n<ul><li><a href=\"#set-opt\">Set Advance Options<\/a><\/li><li><a href=\"#get-opt\">Get Advance Options<\/a><\/li><\/ul>\n\n\n\n<a name=\"set-opt\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>Set Advanced Options<\/h2>\n\n\n\n<p>Use<code> window.EnxRtc.setAdvancedOptions()<\/code> to set the advanced options.<\/p>\n\n\n\n<p><strong>Method:<\/strong> <code>setAdvancedOptions( advanceOptions )<\/code><\/p>\n\n\n\n<p><strong>Parameters:<\/strong><\/p>\n\n\n\n<ul><li><code>@param {Array} advanceOptions<\/code> \u2013 A list of advance options to set. e.g. [\u201c<code>battery_updates<\/code>\u201d, \u201c<code>notify-video-resolution-change<\/code>\u201d]<\/li><\/ul>\n\n\n\n<p><strong>Event Listeners:<\/strong><\/p>\n\n\n\n<ul><li><code>onAdvancedOptionsUpdate<\/code> &#8211; Received when any advance options such as video quality or battery settings updated.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">window.EnxRtc.setAdvancedOptions ( array);\n\/\/ Add Event Listeners\nwindow.EnxRtc.addEventListner(\"onAdvancedOptionsUpdate\", function\n(data)\n{\nconsole.log(JSON.stringify(data.data));\n});<\/pre>\n\n\n\n<a name=\"get-opt\"><\/a>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>Get Advanced Options<\/h2>\n\n\n\n<p>Use <code>window.EnxRtc.getAdvancedOptions()<\/code> to get the advanced options.<\/p>\n\n\n\n<p><strong>Method:<\/strong> <code>getAdvancedOptions()<\/code> &#8211; No Parameters required<\/p>\n\n\n\n<p><strong>Event Listeners:<\/strong> <code>onGetAdvancedOptions <\/code>\u2013 Received when getAdvancedOptions() is called<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">window.EnxRtc.getAdvancedOptions ( );\n\/\/ Add Event Listeners\nwindow.EnxRtc.addEventListner(\"onGetAdvancedOptions\", function\n{\nconsole.log(JSON.stringify(data.data));\n});\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=\"..\/room-information\/\">Room Information<\/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=\"..\/chat\/\">Send Message<\/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>Table of Contents Set Advance Options Get Advance Options Set Advanced Options Use window.EnxRtc.setAdvancedOptions() to set the advanced options. Method: setAdvancedOptions( advanceOptions ) Parameters: @param {Array} advanceOptions \u2013 A list of advance options to set. e.g. [\u201cbattery_updates\u201d, \u201cnotify-video-resolution-change\u201d] Event Listeners: onAdvancedOptionsUpdate &#8211; Received when any advance options such as video quality or battery settings updated. window.EnxRtc.setAdvancedOptions ( array); \/\/ Add Event Listeners window.EnxRtc.addEventListner(&#8220;onAdvancedOptionsUpdate&#8221;, function (data) { console.log(JSON.stringify(data.data)); }); Get Advanced&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":"Table of Contents Set Advance Options Get Advance Options Set Advanced Options Use window.EnxRtc.setAdvancedOptions() to set the advanced options. Method: setAdvancedOptions( advanceOptions ) Parameters: @param {Array} advanceOptions \u2013 A list of advance options to set. e.g. [\u201cbattery_updates\u201d, \u201cnotify-video-resolution-change\u201d] Event Listeners: onAdvancedOptionsUpdate &#8211; Received when any advance options such as video quality or battery settings updated.&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4806"}],"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=4806"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4806\/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=4806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}