{"id":4049,"date":"2021-11-03T15:00:05","date_gmt":"2021-11-03T07:00:05","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4049"},"modified":"2025-02-24T16:42:46","modified_gmt":"2025-02-24T08:42:46","slug":"video-quality-adaption","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/web-toolkit\/video-quality-adaption\/","title":{"rendered":"Video Quality Adaption based on Bandwidth: Web SDK &#8211; Video API"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>The Portal offers Automatic Bandwidth Detection (ABWD) to ensure optimum Audio\/ Video Communication based on the available bandwidth at the Client endpoint. In case Video Call is not feasible at an End Point because of low-bandwidth, communication falls back to Audio-Only call. When  bandwidth improves, Video communication is restored automatically.<\/p><\/blockquote>\n\n\n\n<p>The ABWD detects a change in the available bandwidth when it cannot continue to support all the Videos being received and notifies the Client endpoint with Callback&nbsp;<code>room-bandwidth-alert<\/code>. You can handle this event by choosing to reduce the number of Active Talker\u2019s Videos being received or by switching to audio-only mode.<\/p>\n\n\n\n<p>This helps users facing extremely poor network conditions to go into audio-only mode without disrupting the session.<\/p>\n\n\n\n<p><strong>Event Listener: <\/strong><code>room-bandwidth-alert<\/code><\/p>\n\n\n\n<ul><li>Notification is sent to the affected Client endpoint when:<ul><li>Bandwidth at the endpoint reduces to a level where all Videos being received cannot be supported.<\/li><li>Bandwidth at the endpoint increases to a level where more Videos than those currently being received can be supported.<\/li><\/ul><\/li><li>Notification is not triggered for any bandwidth fluctuation that does not affect the number of Videos being received at the Client endpoint.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ To receive notification\nroom.addEventListener(\"room-bandwidth-alert\", function (evt) {\n     \/* evt carries JSON data, sample given below *\/\n });<\/pre>\n\n\n\n<p><strong><code>room-bandwidth-alert<\/code><\/strong> <strong>JSON Payload<\/strong>:<\/p>\n\n\n\n<ul><li><code>bandwidth<\/code>&nbsp;\u2013 Updated (Reduced or Increased) Bandwidth at the Client endpoint.<\/li><li><code>stream_bandwidth<\/code> &#8211; Bandwidth consumption by streams.<\/li><li><code>number_of_videos<\/code>&nbsp;\u2013 Number of Videos that can be supported at the available bandwidth.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n\t\"msg\": {\n\t\t\"bandwidth\": 240,\n\t\t\"stream_bandwidth\": 80,\n\t\t\"number_of_videos\": 2\n\t}\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=\"\/developer\/video-api\/client-api\/web-toolkit\/room-connection\/\">Room Connection<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.enablex.io\/developer\/\">Index<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-right\"><a href=\"\/developer\/video-api\/client-api\/web-toolkit\/publishing-local-stream\/\">Publish Local Stream<\/a> \u2192<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Portal offers Automatic Bandwidth Detection (ABWD) to ensure optimum Audio\/ Video Communication based on the available bandwidth at the Client endpoint. In case Video Call is not feasible at an End Point because of low-bandwidth, communication falls back to Audio-Only call. When bandwidth improves, Video communication is restored automatically. The ABWD detects a change in the available bandwidth when it cannot continue to support all the Videos being received&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3724,"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":"The Portal offers Automatic Bandwidth Detection (ABWD) to ensure optimum Audio\/ Video Communication based on the available bandwidth at the Client endpoint. In case Video Call is not feasible at an End Point because of low-bandwidth, communication falls back to Audio-Only call. When bandwidth improves, Video communication is restored automatically. The ABWD detects a change&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4049"}],"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=4049"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4049\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3724"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}