destroyScreenCaptureSource method

Future<void> destroyScreenCaptureSource(
  1. int index
)

Implementation

Future<void> destroyScreenCaptureSource(int index) async {
  if (_mediaSources[index] == null) return;
  _mediaSources[index].instance.stopCapture(index);
  _mediaSources.remove(index);
}