toggleVideo method
- bool? enabled
Toggles local video stream on and off.
Implementation
Future<void> toggleVideo([bool? enabled]) async {
Log.debug('toggleVideo($enabled)', '$runtimeType');
await setVideoEnabled(
videoState.value != LocalTrackState.enabled &&
videoState.value != LocalTrackState.enabling,
);
}