clearVideoMedia method

Future<void> clearVideoMedia()

Implementation

Future<void> clearVideoMedia() async {
  await currentVideoStream?.dispose();
  currentVideoStream = null;
  currentFacingMode = null;
}