createContext method
Create an input capture context.
Implementation
@override
Future<MiniInputContextPlatformInterface> createContext() async {
final handlePtr = calloc<bindings.MiniAVInputContextHandle>();
try {
final res = bindings.MiniAV_Input_CreateContext(handlePtr);
if (res != bindings.MiniAVResultCode.MINIAV_SUCCESS) {
throw Exception('Failed to create input context: ${res.name}');
}
return MiniAVFFIInputContextPlatform(handlePtr.value);
} finally {
calloc.free(handlePtr);
}
}