toggleVideo method

dynamic toggleVideo()

Implementation

toggleVideo() {
  if (videoTrack != null) {
    videoTrack!.enabled = !videoTrack!.enabled;
    isVideoActive = videoTrack!.enabled;
  }
}