setAspectRatio method

void setAspectRatio(
  1. String aspect
)

Set new video aspect ratio.

aspect new video aspect-ratio or NULL to reset to default

Implementation

void setAspectRatio(String aspect)async{
  await _ensureInitialized();
  if(_isNeedDisposed) return;
  await _vlcApi.setAspectRatio(aspect,_textureId);
}