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