generate method

String generate(
  1. String optsJson
)

Generate videos from optsJson (serialized VideoCallOptions).

Returns the JSON-serialized VideoResult, or throws AimuxException.

Implementation

String generate(String optsJson) {
  _checkOpen();
  return withAimuxCError((err) {
    return withUtf8(optsJson, (optsPtr) {
      final resultPtr = _ffi.videoGenerate(_handle, optsPtr, err);
      return takeString(resultPtr, err);
    });
  });
}