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