TVICameraCapturerDelegate Protocol Reference

Conforms to NSObject
Declared in TVICameraCapturer.h

Overview

TVICameraCapturerDelegate receives important lifecycle events related to the capturer. By implementing these methods you can override default behavior, or handle errors that may occur.

– cameraCapturer:didStartWithSource:

The camera capturer has started capturing live video.

- (void)cameraCapturer:(nonnull TVICameraCapturer *)capturer didStartWithSource:(TVICameraCaptureSource)source

Parameters

capturer

The capturer which started.

source

The source which is now being captured.

Discussion

You may wish to update the mirroring property of any local video views depending on the source that is now being captured.

Declared In

TVICameraCapturer.h

– cameraCapturerWasInterrupted:reason:

The camera capturer was temporarily interrupted. Respond to this method to override the default behavior.

- (void)cameraCapturerWasInterrupted:(nonnull TVICameraCapturer *)capturer reason:(AVCaptureSessionInterruptionReason)reason

Parameters

capturer

The capture which was interrupted.

reason

The reason why the capture was interrupted.

Discussion

You may wish to pause your TVILocalVideoTrack, or update your UI in response to an interruption.

Declared In

TVICameraCapturer.h

– cameraCapturer:didFailWithError:

The camera capturer failed to start or stopped running with a fatal error.

- (void)cameraCapturer:(nonnull TVICameraCapturer *)capturer didFailWithError:(nonnull NSError *)error

Parameters

capturer

The capturer which stopped.

error

The error which caused the capturer to stop.

Declared In

TVICameraCapturer.h