setVideoEffect method
Set a built-in video effect. https://github.com/wang-bin/mdk-sdk/wiki/Player-APIs#player-setvideoeffect-effect-const-float-values-void-vo_opaque--nullptr
Implementation
void setVideoEffect(VideoEffect effect, List<double> value) {
final cv = calloc<Float>(value.length);
for (int i = 0; i < value.length; ++i) {
cv[i] = value[i];
}
_player.ref.setVideoEffect.asFunction<
void Function(
Pointer<mdkPlayer>, int, Pointer<Float>, Pointer<Void>)>()(
_player.ref.object, effect.rawValue, cv.cast(), Pointer.fromAddress(0));
calloc.free(cv);
}