{"id":4546,"date":"2021-11-29T15:02:21","date_gmt":"2021-11-29T07:02:21","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4546"},"modified":"2022-04-08T13:16:02","modified_gmt":"2022-04-08T05:16:02","slug":"advance-stream-options","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/react-native-toolkit\/advance-stream-options\/","title":{"rendered":"Advance Stream Options: React Native SDK &#8211; Video API"},"content":{"rendered":"\n<p>You can use Advance Options on your local Stream to get notified on various events affecting your Streaming process. <\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>Enx.setAdvancedOptions(AdvanceOptions)<\/code> &#8211; To set advance options<\/p>\n\n\n\n<p><strong>Parameter<\/strong>: <\/p>\n\n\n\n<ul><li><code>AdvanceOptions<\/code> &#8211; Array of Options that you can set on your Local Stream:<ul><li><code>battery_updates<\/code>&nbsp;\u2013 Boolean. Set as <em>true<\/em> to receive battery updates\/information<\/li><li><code>notify_video_resolution_change<\/code>&nbsp;\u2013 Boolean. Set  as <em>true<\/em> to receive Video Resolution Change Information<\/li><\/ul><\/li><\/ul>\n\n\n\n<p><strong>Callback<\/strong>: <code>advancedOptionsUpdate<\/code> &#8211; To notify advance options on local stream has been updated<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">advanceOptions: {\n\tbattery_updates: true,\n\tnotify_video_resolution_change: true\n} \n\nEnx.setAdvancedOptions(advanceOptions)\n\n\/\/ Advance Options are updated\nadvancedOptionsUpdate: event =&gt; {\n\t\/* event = \n\t[ \n\t\t{\t\"id\":\"battery_updates\",\n\t\t\t\"enable\":true\n\t\t}, \n\t\t{\t\"id\":\"notify-video-resolution-change\",\n\t\t\t\"enable\":true\n\t\t} \n\t]&nbsp; *\/\n}<\/pre>\n\n\n\n<p><strong>Method<\/strong>: <code>Enx.getAdvancedOptions()<\/code> &#8211; To get advance options <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Enx.getAdvancedOptions()\n\n\/\/ Advance Options are updated\ngetAdvancedOptions: event =&gt; {\n\t\/* event = \n\t[ \n\t\t{\t\"id\":\"battery_updates\",\n\t\t\t\"enable\":true\n\t\t}, \n\t\t{\t\"id\":\"notify-video-resolution-change\",\n\t\t\t\"enable\":true\n\t\t} \n\t]&nbsp; *\/\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=\"..\/subscribing-remote-streams\/\"><\/a><a href=\"..\/subscribing-remote-streams\/\">Subscribe Remote 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>You can use Advance Options on your local Stream to get notified on various events affecting your Streaming process. Method: Enx.setAdvancedOptions(AdvanceOptions) &#8211; To set advance options Parameter: AdvanceOptions &#8211; Array of Options that you can set on your Local Stream: battery_updates&nbsp;\u2013 Boolean. Set as true to receive battery updates\/information notify_video_resolution_change&nbsp;\u2013 Boolean. Set as true to receive Video Resolution Change Information Callback: advancedOptionsUpdate &#8211; To notify advance options on local stream&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3747,"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":"You can use Advance Options on your local Stream to get notified on various events affecting your Streaming process. Method: Enx.setAdvancedOptions(AdvanceOptions) &#8211; To set advance options Parameter: AdvanceOptions &#8211; Array of Options that you can set on your Local Stream: battery_updates&nbsp;\u2013 Boolean. Set as true to receive battery updates\/information notify_video_resolution_change&nbsp;\u2013 Boolean. Set as true to&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4546"}],"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=4546"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4546\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3747"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}