isCameraEnabled method

bool isCameraEnabled()

Convenience property to check whether TrackSource.camera is published or not.

Implementation

bool isCameraEnabled() {
  return !(getTrackPublicationBySource(TrackSource.camera)?.muted ?? true);
}