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

CaptureSourceObserver

interface CaptureSourceObserver

CaptureSourceObserver observes events resulting from different types of capture devices. Builders may desire this input to decide when to show certain UI elements, or to notify users of failure.

Functions

onCaptureFailed

Called when the capture source failed unexpectedly. This may be due to misconfiguration or Android system error, and the capture source may be in an unknown state.

abstract fun onCaptureFailed(error: CaptureSourceError): Unit

onCaptureStarted

Called when the capture source has started successfully and has started emitting frames

abstract fun onCaptureStarted(): Unit

onCaptureStopped

Called when the capture source has stopped when expected. The capture may be in the processed of restarting, e.g. this may occur when switching cameras.

abstract fun onCaptureStopped(): Unit