public protocol 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.
Called when the capture source has started successfully and has started emitting frames.
Called when the capture source has stopped when expected. This may occur when switching cameras, for example.
Called when the capture source failed permanently
func captureDidFail(error: CaptureSourceError)
- The reason why the source has stopped.