openCamera abstract method

  1. @nitroNativeAsync
Future<int> openCamera(
  1. String deviceId,
  2. int width,
  3. int height,
  4. int fps,
  5. int enableAudio,
)

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,
);