{"id":4674,"date":"2021-12-02T21:20:42","date_gmt":"2021-12-02T13:20:42","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4674"},"modified":"2025-04-10T20:38:05","modified_gmt":"2025-04-10T12:38:05","slug":"set-video-scaling-type","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/flutter-toolkit\/set-video-scaling-type\/","title":{"rendered":"Set Video Scaling Type: Flutter SDK &#8211; Video API"},"content":{"rendered":"\n<p>Use await <code>EnxRtc.setScalingType()<\/code> to update the scaling type <code>EnxPlayerWidget.<\/code><\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>static Future&lt;void&gt;setPlayerScalingType(ScalingType scalingType,int viewId,int uid, bool isLocal)<\/code><\/p>\n\n\n\n<p><strong>Parameters:<\/strong><\/p>\n\n\n\n<ul><li><code>@param ScalingType ScalingType<\/code> &#8211; One of the following constants:<ul><li><code>SCALE_ASPECT_BALANCED<\/code><\/li><li><code>SCALE_ASPECT_FIT<\/code><\/li><li><code>SCALE_ASPECT_FILL<\/code><\/li><\/ul><\/li><li><code>@param int viewId<\/code> &#8211; EnxPlayerWidget Id<\/li><li><code>@param int uid<\/code> &#8211; EnxPlayerWidget Id<\/li><li><code>@param boolean isLocal<\/code> &#8211; true if the Player Widget is Local<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">EnxRtc.setScalingType(type,viewId,uid,true);<\/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=\"..\/handle-application-switch\/\">Handle Application Switch<\/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=\"..\/enable-proximity-sensor\">Enable Proximity Sensor<\/a> \u2192<\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use await EnxRtc.setScalingType() to update the scaling type EnxPlayerWidget. Method: static Future&lt;void&gt;setPlayerScalingType(ScalingType scalingType,int viewId,int uid, bool isLocal) Parameters: @param ScalingType ScalingType &#8211; One of the following constants: SCALE_ASPECT_BALANCED SCALE_ASPECT_FIT SCALE_ASPECT_FILL @param int viewId &#8211; EnxPlayerWidget Id @param int uid &#8211; EnxPlayerWidget Id @param boolean isLocal &#8211; true if the Player Widget is Local EnxRtc.setScalingType(type,viewId,uid,true); \u2190 Handle Application Switch Index Enable Proximity Sensor \u2192<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3755,"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":"Use await EnxRtc.setScalingType() to update the scaling type EnxPlayerWidget. Method: static Future&lt;void&gt;setPlayerScalingType(ScalingType scalingType,int viewId,int uid, bool isLocal) Parameters: @param ScalingType ScalingType &#8211; One of the following constants: SCALE_ASPECT_BALANCED SCALE_ASPECT_FIT SCALE_ASPECT_FILL @param int viewId &#8211; EnxPlayerWidget Id @param int uid &#8211; EnxPlayerWidget Id @param boolean isLocal &#8211; true if the Player Widget is Local EnxRtc.setScalingType(type,viewId,uid,true); \u2190&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4674"}],"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=4674"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4674\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3755"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}