generate method
Generate videos from optsJson (serialized VideoCallOptions).
Returns the JSON-serialized VideoResult, or throws AimuxException.
Implementation
String generate(String optsJson) {
_checkOpen();
checkJson(optsJson, 'opts_json');
return withUtf8(optsJson, (optsPtr) {
return takeString(
(out) => _ffi.videoGenerate(_handle, optsPtr, out), 'video_generate');
});
}