destroy method

void destroy()

Implementation

void destroy() {
  videoRenderer?.srcObject = null;
  videoRenderer?.dispose();
}