setCameraEnabled method

Future<LocalTrackPublication<LocalTrack>?> setCameraEnabled(
  1. bool enabled,
  2. {CameraCaptureOptions? cameraCaptureOptions}
)

Shortcut for publishing a TrackSource.camera

Implementation

Future<LocalTrackPublication?> setCameraEnabled(bool enabled,
    {CameraCaptureOptions? cameraCaptureOptions}) async {
  return setSourceEnabled(TrackSource.camera, enabled,
      cameraCaptureOptions: cameraCaptureOptions);
}