setMicrophoneStatus method

Future<Map<String, dynamic>> setMicrophoneStatus(
  1. String deviceSerial,
  2. bool enable
)

Implementation

Future<Map<String, dynamic>> setMicrophoneStatus(
  String deviceSerial,
  bool enable,
  // channelNo is not listed for set, but often present for camera specific settings.
  // Assuming it might be needed or API applies to device level if channelNo not provided.
) async {
  return _client.post('/api/lapp/camera/video/sound/set', {
    'deviceSerial': deviceSerial,
    'enable': enable ? 1 : 0,
  });
}