setAspectRatio method

void setAspectRatio(
  1. double value
)

Set video content aspect ratio. No effect if texture width/height == original video frame width/height. value can be ignoreAspectRatio, keepAspectRatio, keepAspectRatioCrop and other desired ratio = width/height

https://github.com/wang-bin/mdk-sdk/wiki/Player-APIs#void-setaspectratiofloat-value-void-vo_opaque--nullptr

Implementation

void setAspectRatio(double value) => _player.ref.setAspectRatio
    .asFunction<void Function(Pointer<mdkPlayer>, double, Pointer<Void>)>()(
  _player.ref.object,
  value,
  _getVid(),
);