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