dispose method

Future<void> dispose()

Implementation

Future<void> dispose() async {
  await stopAllTracksAndDispose(video);
  videoRenderer.srcObject = null;
  await videoRenderer.dispose();
}