TVICameraSourceDelegate Protocol Reference

Conforms to NSObject
Declared in TVICameraSource.h

Overview

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

– cameraSourceInterruptionEnded:

The camera source interruption has now ended.

- (void)cameraSourceInterruptionEnded:(nonnull TVICameraSource *)source

Parameters

source

The source which started.

Discussion

You might wish to enable your TVILocalVideoTrack if you disabled it when the interruption began.

Declared In

TVICameraSource.h

– cameraSourceWasInterrupted:reason:

The source was interrupted, and will not produce any more frames until the interruption ends.

- (void)cameraSourceWasInterrupted:(nonnull TVICameraSource *)source reason:(AVCaptureSessionInterruptionReason)reason

Parameters

source

The source which was interrupted.

reason

The reason why the source was interrupted.

Discussion

You may wish to disable your TVILocalVideoTrack, and update your UI in response to an interruption.

Declared In

TVICameraSource.h

– cameraSource:didFailWithError:

The source stopped running with a fatal error.

- (void)cameraSource:(nonnull TVICameraSource *)source didFailWithError:(nonnull NSError *)error

Parameters

source

The source which stopped.

error

The error which caused the source to stop.

Declared In

TVICameraSource.h