restartVideoStream function
void
restartVideoStream(
- MediaStream stream
Implementation
void restartVideoStream(MediaStream stream) {
print('RESTART LOCAL STREAM');
List<MediaStreamTrack> vidTracks = stream.getVideoTracks();
for (var track in vidTracks) {
track.enabled = true;
}
}