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 *)capturerParameters
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)sourceParameters
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 *)capturerParameters
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:didFailWithError:
The camera capturer failed to start or stopped running with a fatal error.
- (void)cameraCapturer:(nonnull TVICameraCapturer *)capturer didFailWithError:(nonnull NSError *)errorParameters
capturer |
The capturer which stopped. |
|---|---|
error |
The error which caused the capturer to stop. |
Declared In
TVICameraCapturer.h