updateAudioDevice method

Future<void> updateAudioDevice()

Implementation

Future<void> updateAudioDevice() async {
  final stream =
      await voip.delegate.mediaDevices.getUserMedia({'audio': true});
  final audioTrack = stream.getAudioTracks().first;
  for (final call in calls) {
    await call.updateAudioDevice(audioTrack);
  }
}