private void onVideo(string path) { dispatch.Dispatch(() => recordingCallback(path)); dispatch.Dispose(); dispatch = null; }