updateLocalUsermediaStream method

void updateLocalUsermediaStream(
  1. WrappedMediaStream stream
)

Implementation

void updateLocalUsermediaStream(WrappedMediaStream stream) {
  if (localUserMediaStream != null) {
    final oldStream = localUserMediaStream!.stream;
    localUserMediaStream!.setNewStream(stream.stream!);
    stopMediaStream(oldStream);
  }
}