{"id":4045,"date":"2021-11-03T14:37:35","date_gmt":"2021-11-03T06:37:35","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4045"},"modified":"2025-02-24T17:02:53","modified_gmt":"2025-02-24T09:02:53","slug":"receiving-video-quality","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/web-toolkit\/receiving-video-quality\/","title":{"rendered":"Receiving Video Quality: Web SDK &#8211; Video API"},"content":{"rendered":"\n<p>The&nbsp;<code>EnxRoom.setReceiveVideoQuality()<\/code>&nbsp;method allows you to set the desired video quality at the available bandwidth for Remote Streams to be received at the Client endpoint. You can utilize this API to create UI with enumerated values that allow the user to choose the desired video quality to be received.<\/p>\n\n\n\n<p><strong>Method: <\/strong><code>EnxRoom.setReceiveVideoQuality(QualityOpt, Callback)<\/code> <\/p>\n\n\n\n<p><strong>Parameter: <\/strong> <\/p>\n\n\n\n<p>QualityOpt &#8211; Video Quality JSON object with the following keys:<\/p>\n\n\n\n<ul><li><code>videoQuality<\/code>: Enumerated Values: <code>Auto<\/code>, <code>HD<\/code>, <code>SD<\/code>, <code>LD<\/code>. Set to <code>Auto<\/code>\u00a0to allow the Portal to choose the optimum quality dynamically based on the available bandwidth.<\/li><li><code>streamType<\/code>: Enumerated Values: <code>talker<\/code>, <code>canvas<\/code><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">var Quality = {\n     \"videoQuality\": \"\", \n     \"streamType\":  \"talker\"\n };\n\n room.setReceiveVideoQuality(Quality, function (result) {\n         if(result.result == 0) {\n            \/\/ Success\n         }\n         else {\n            \/\/ Faileld - result.message\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=\"..\/active-talkers\/\">Handle Active Talkers<\/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=\"..\/play-stream\/\">Play Stream<\/a>  \u2192 <\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;EnxRoom.setReceiveVideoQuality()&nbsp;method allows you to set the desired video quality at the available bandwidth for Remote Streams to be received at the Client endpoint. You can utilize this API to create UI with enumerated values that allow the user to choose the desired video quality to be received. Method: EnxRoom.setReceiveVideoQuality(QualityOpt, Callback) Parameter: QualityOpt &#8211; Video Quality JSON object with the following keys: videoQuality: Enumerated Values: Auto, HD, SD, LD. Set to&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&nbsp;EnxRoom.setReceiveVideoQuality()&nbsp;method allows you to set the desired video quality at the available bandwidth for Remote Streams to be received at the Client endpoint. You can utilize this API to create UI with enumerated values that allow the user to choose the desired video quality to be received. Method: EnxRoom.setReceiveVideoQuality(QualityOpt, Callback) Parameter: QualityOpt &#8211; Video Quality&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4045"}],"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=4045"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4045\/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=4045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}