disableMic method

Future<void> disableMic()

Implementation

Future<void> disableMic() async {
  String micId = producerDataHolder!.mic!.id;
  producerDataHolder!.producerRemove("mic");
  try {
    await _webSocket!.socket.request("closeProducer", {"producerId": micId});
  } catch (error) {
    rethrow;
  }
}