close method

void close()

Implementation

void close() {
  if (rtcPeerConnection != null) {
    rtcPeerConnection!.close();
    rtcPeerConnection = null;
  }
  renderer.dispose();
  localStream = null;
  remoteStream = null;
}