setAspectRatio method

void setAspectRatio(
  1. double value, {
  2. Object? vid,
})

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, {Object? vid}) =>
    _player.ref.setAspectRatio.asFunction<
            void Function(Pointer<mdkPlayer>, double, Pointer<Void>)>()(
        _player.ref.object, value, Pointer.fromAddress(vid.hashCode));