startRecord method

Future<int> startRecord({
  1. required SurfaceMessage msg,
  2. required String filePath,
})

Implementation

Future<int> startRecord(
    {required SurfaceMessage msg, required String filePath}) async {
  final MediaResponse response = await _api.startRecord(msg, filePath);
  return response.code;
}