Use await EnxRtc.setScalingType()
to update the scaling type EnxPlayerWidget.
Method: static Future<void>setPlayerScalingType(ScalingType scalingType,int viewId,int uid, bool isLocal)
Parameters:
@param ScalingType ScalingType
– One of the following constants:SCALE_ASPECT_BALANCED
SCALE_ASPECT_FIT
SCALE_ASPECT_FILL
@param int viewId
– EnxPlayerWidget Id@param int uid
– EnxPlayerWidget Id@param boolean isLocal
– true if the Player Widget is Local
EnxRtc.setScalingType(type,viewId,uid,true);