setNewStream method

void setNewStream(
  1. MediaStream newStream
)

Implementation

void setNewStream(MediaStream newStream) {
  stream = newStream;
  renderer.srcObject = stream;
  if (onNewStream != null) {
    onNewStream?.call(stream!);
  }
}