amazon-chime-sdk / com.amazonaws.services.chime.sdk.meetings.audiovideo.video.capture / CameraCaptureSource

# CameraCaptureSource

`interface CameraCaptureSource : VideoCaptureSource`

CameraCaptureSource is an interface for camera capture sources with additional features not covered by VideoCaptureSource.

All the APIs here can be called regardless of whether the AudioVideoFacade is started or not.

### Properties

#### device | Current camera device. This is only null if the phone/device doesn't have any cameras May be called regardless of whether start or stop has been called. `abstract var device: MediaDevice?`
#### format | Current camera capture format. Actual format may be adjusted to use supported camera formats. May be called regardless of whether start or stop has been called. `abstract var format: VideoCaptureFormat`
#### torchEnabled | Toggle for torch on the current device. Will succeed if current device has access to flashlight, otherwise will stay false. May be called regardless of whether start or stop has been called. `abstract var torchEnabled: Boolean`

### Functions

#### switchCamera | Helper function to switch from front to back cameras or reverse. This also switches from any external cameras to the front camera. `abstract fun switchCamera(): Unit`

### Inheritors

#### DefaultCameraCaptureSource | DefaultCameraCaptureSource will configure a reasonably standard capture stream which will use the Surface provided by the capture source provided by a SurfaceTextureCaptureSourceFactory `class DefaultCameraCaptureSource : CameraCaptureSource, VideoSink`