OTVideoCapture
Defines a video capturer to be used by an OTPublisherKit object. See the videoCapture property of an OTPublisherKit object.
Properties
| Name | Type | Description |
|---|---|---|
videoCaptureConsumer |
id<OTVideoCaptureConsumer> | The OTVideoCaptureConsumer object that consumes frames for the video capturer. |
videoContentHint |
OTVideoContentHint | This property will get/set the video content hint to one of the values given in the OTVideoContentHint enum. By default it is set to NONE. |
Methods
| Name | Description |
|---|---|
initCapture() |
Initializes the video capturer. |
releaseCapture() |
Releases the video capturer. |
startCapture() → {int32_t} |
Starts capturing video. |
stopCapture() → {int32_t} |
Stops capturing video. |
isCaptureStarted() → {BOOL} |
Whether video is being captured. |
captureSettings:(videoFormat) → {int32_t} |
The video format of the video capturer. |
initCapture()
Initializes the video capturer.
releaseCapture()
Releases the video capturer.
startCapture() → {int32_t}
Starts capturing video.
Returns:
stopCapture() → {int32_t}
Stops capturing video.
Returns:
isCaptureStarted() → {BOOL}
Whether video is being captured.
Returns:
captureSettings:(videoFormat) → {int32_t}
The video format of the video capturer.
Parameters:
| Name | Type | Description |
|---|---|---|
videoFormat |
OTVideoFormat * | The video format used. |