restartAudioStream function

void restartAudioStream(
  1. MediaStream stream
)

Implementation

void restartAudioStream(MediaStream stream) {
  print('RESTART AUDIO');
  List<MediaStreamTrack> audTracks = stream.getAudioTracks();
  for (var track in audTracks) {
    track.enabled = true;
  }
}