openCamera abstract method
Opens the camera identified by deviceId and starts streaming frames
into a Flutter Texture. Returns the Flutter texture ID.
width / height — requested preview resolution.
fps — target frame rate (e.g. 30 or 60).
enableAudio — 1 to capture audio for video recording, 0 otherwise.
Implementation
@nitroNativeAsync
Future<int> openCamera(
String deviceId,
int width,
int height,
int fps,
int enableAudio,
);