stopStream method

void stopStream(
  1. MediaStream? stream
)

Implementation

void stopStream(MediaStream? stream) {
  if (stream == null) {
    return;
  }

  for (MediaStreamTrack track in stream.getTracks()) {
    track.stop();
  }
}