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 behaviour, or handle errors that may occur.
– cameraCapturerPreviewDidStart:
The camera capturer has started producing a local preview feed.
- (void)cameraCapturerPreviewDidStart:(nonnull TVICameraCapturer *)capturer
Parameters
capturer |
The capturer which started. |
---|
Declared In
TVICameraCapturer.h
– cameraCapturer:didStartWithSource:
The camera capturer has started capturing live video.
- (void)cameraCapturer:(nonnull TVICameraCapturer *)capturer didStartWithSource:(TVIVideoCaptureSource)source
Parameters
capturer |
The capturer which started. |
---|---|
source |
The source which is now being captured. |
Discussion
By default TVICameraCapturer
mirrors (only) TVIVideoViewRenderer
views when the source
is TVIVideoCaptureSourceFrontCamera
. If you respond to this delegate method then it is your
responsibility to apply mirroring to renderers as you see fit.
Declared In
TVICameraCapturer.h
– cameraCapturerWasInterrupted:
The camera capturer was temporarily interrupted. Respond to this method to override the default behaviour.
- (void)cameraCapturerWasInterrupted:(nonnull TVICameraCapturer *)capturer
Parameters
capturer |
The capture which was interrupted. |
---|
Discussion
You may wish to pause your TVILocalVideoTrack
, or update your UI in repsonse to an interruption.
Declared In
TVICameraCapturer.h
– cameraCapturer:didStopRunningWithError:
The camera capturer stopped running with a fatal error.
- (void)cameraCapturer:(nonnull TVICameraCapturer *)capturer didStopRunningWithError:(nonnull NSError *)error
Parameters
capturer |
The capturer which stopped. |
---|---|
error |
The error which caused the capturer to stop. |
Declared In
TVICameraCapturer.h