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
Link copied to clipboard
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.
Link copied to clipboard
Called when the capture source has started successfully and has started emitting frames
Link copied to clipboard
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.