OpenTok C SDK
|
#include <video_capturer.h>
Data Fields | |
otc_bool(* | init )(const otc_video_capturer *capturer, void *user_data) |
otc_bool(* | destroy )(const otc_video_capturer *capturer, void *user_data) |
otc_bool(* | start )(const otc_video_capturer *capturer, void *user_data) |
otc_bool(* | stop )(const otc_video_capturer *capturer, void *user_data) |
otc_bool(* | get_capture_settings )(const otc_video_capturer *capturer, void *user_data, struct otc_video_capturer_settings *settings) |
void * | user_data |
void * | reserved |
Audio device callback functions.
This struct is a set of function pointers to callback functions for events related to a video capturer.
All callbacks will not be made on the application or main thread but on an internal thread. The application should return the callback as quickly as possible to avoid blocking the internal thread.
otc_bool(* destroy) (const otc_video_capturer *capturer, void *user_data) |
Requests that a video capturer destroy itself.
capturer | A pointer to a video capturer instance. |
user_data | Pointer to user custom data bound to this struct. |
otc_bool(* get_capture_settings) (const otc_video_capturer *capturer, void *user_data, struct otc_video_capturer_settings *settings) |
Request that the video capturer returns the settings being used.
capturer | A pointer to a video capturer instance. |
user_data | Pointer to user custom data bound to this struct. |
settings | A pointer to a struct holding the settings. |
otc_bool(* init) (const otc_video_capturer *capturer, void *user_data) |
Requests that a video capturer initialize itself.
capturer | A pointer to a video capturer instance. |
user_data | Pointer to user custom data bound to this struct. |
void* reserved |
A void pointer to a memory area holding reserved resources used for the internal implementation.
otc_bool(* start) (const otc_video_capturer *capturer, void *user_data) |
Requests that the video capturer starts capturing video.
capturer | A pointer to a video capturer instance. |
user_data | Pointer to user custom data bound to this struct. |
otc_bool(* stop) (const otc_video_capturer *capturer, void *user_data) |
Requests that the video capturer stops capturing video.
capturer | A pointer to a video capturer instance. |
user_data | Pointer to user custom data bound to this struct. |
void* user_data |
This struct member can point to data related to the video capturer which the developer might need.