|
Vonage Video API Linux SDK
|
Base functions. More...
#include "config.h"Data Structures | |
| struct | otc_on_mute_forced_info |
| struct | otc_transport_stats |
Typedefs | |
| typedef int | otc_bool |
| typedef int | otc_status |
| typedef void(* | otc_logger_callback) (const char *message) |
Functions | |
| otc_status | otc_init (void *reserved) |
| otc_status | otc_destroy () |
| void | otc_log_set_logger_callback (otc_logger_callback callback) |
| void | otc_log_enable (enum otc_log_level log_level) |
| enum otc_log_level | otc_get_log_level () |
Base functions.
This file includes functions uses to initialize and destroy the library engine, as well as other functions to enable console logging.
| typedef int otc_bool |
Type definition for Boolean values.
Useful type for variables to represent Boolean values (true and false).
| typedef void(* otc_logger_callback) (const char *message) |
Type definition for a function pointer to the function used as the custom logging callback to get messages logged by the SDK.
| message | A pointer to the message being logged. |
| typedef int otc_status |
Type definition for statuses.
This is the most common type for return value for functions in this library. This type includes values from the error code enumerations.
| enum otc_constant |
| enum otc_error_code |
This enumeration includes error codes.
| Enumerator | |
|---|---|
| OTC_INVALID_PARAM | Invalid funtion argument error code. An argment used in a function call is not valid. |
| OTC_FATAL | Fatal error code. Generic error. |
| OTC_INVALID_VIDEO_FORMAT | Invalid video format Raised when the capturer is configured with an invalid video format |
| OTC_CONNECTION_DROPPED | Connection dropped error code. The connection to the OpenTok messaging server was dropped. Check the network connection. |
| OTC_UNABLE_TO_FORCE_DISCONNECT | Force disconnect error code. Unable to successfully call |
| OTC_UNABLE_TO_FORCE_MUTE | Force mute error code. Unable to successfully call |
| OTC_CONNECTION_TIMED_OUT | Connection time out error code. Time out while performing a connect action. |
| OTC_UNKNOWN_PUBLISHER_INSTANCE | Unknown publisher instance error code. An unknown Publisher instance was used as a function argument. |
| OTC_UNKNOWN_SUBSCRIBER_INSTANCE | Unknown subscriber instance error code. An unknown subscriber instance was used as a function argument. |
| OTC_VIDEO_CAPTURE_FAILED | Video capture error code. There was an error with the video capturer. |
| OTC_CAMERA_FAILED | Acquiring video camera error code. There was an error while acquiring video from the camera. |
| OTC_VIDEO_RENDER_FAILED | Video rendering error code. There was an error while rendering video. |
| OT_UNABLE_TO_ACCESS_MEDIA_ENGINE | Media engine access error code. There was an error when trying to get the list of supported video codecs. |
| enum otc_log_level |
Log level enumeration.
This enumeration represents the different log levels supported.
Estimated network condition score for a transport.
This enum represents the overall health of the network connection for a given transport (local or remote). It is typically derived from metrics such as packet loss, and estimated available bandwidth. Higher values indicate better network conditions.
OTC_NETWORK_CONDITION_WARNING and OTC_NETWORK_CONDITION_CRITICAL indicate degraded network conditions that may trigger audio fallback callbacks. If audio fallback is enabled, the SDK will notify via the corresponding callbacks, and in the CRITICAL state, video is disabled to preserve call stability.
Indicates the source of video/network degradation in the session.
This enum identifies which side of the call is responsible for observed network issues impacting video quality. It complements per-transport network condition metrics.
| enum otc_network_reason |
Enum describing reasons impacting the network condition.
These values indicate the primary factor affecting the current network condition assessment, such as bandwidth constraints, or packet loss.
| enum otc_video_reason |
Enum for reasons for a video to be started, stopped, resumed, etc.
| otc_status otc_destroy | ( | ) |
Destroys the library engine. You should call this function when you are done executing code that uses the library.
| enum otc_log_level otc_get_log_level | ( | ) |
Gets the current console logging level.
| otc_status otc_init | ( | void * | reserved | ) |
Initializes the library. You must call this function before the execution of any other code using the library.
| reserved | A void pointer to a memory area holding reserved resources used for the internal implementation. This must be set to NULL. |
| void otc_log_enable | ( | enum otc_log_level | log_level | ) |
Enables logging of SDK messages for a given log level.
| log_level | The desired log level. |
| void otc_log_set_logger_callback | ( | otc_logger_callback | callback | ) |
Sets the function pointer to a custom logging callback function to get messages logged by the SDK. If you do not set a logging callback function, the SDK will log messages to the console.
| callback | A pointer to the callback function. |