Suggestions

close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

media_utils.h File Reference

Media utility functions. More...

#include "config.h"

Data Structures

struct  otc_media_utils_codecs

Typedefs

typedef enum otc_video_codec_type otc_video_codec_type

Enumerations

enum  otc_video_codec_type { OTC_VIDEO_CODEC_VP8 = 1, OTC_VIDEO_CODEC_H264 = 2, OTC_VIDEO_CODEC_VP9 = 3 }

Functions

otc_status otc_media_utils_get_supported_codecs (otc_media_utils_codecs **supported_codecs)
otc_status otc_media_utils_codecs_delete (otc_media_utils_codecs *supported_codecs)

Detailed Description

Media utility functions.

This file includes an otc_media_utils_get_supported_codecs(otc_media_utils_codecs** supported_codecs) function, which you can use to find the video codecs supported on the device.

Typedef Documentation

◆ otc_video_codec_type

Video codec type type definition.

Enumeration Type Documentation

◆ otc_video_codec_type

Video codec type enum.

Enumerator
OTC_VIDEO_CODEC_VP8 

Video codec type for VP8.

OTC_VIDEO_CODEC_H264 

Video codec type for H.264.

OTC_VIDEO_CODEC_VP9 

Video codec type for VP9.

Function Documentation

◆ otc_media_utils_codecs_delete()

otc_status otc_media_utils_codecs_delete ( otc_media_utils_codecs supported_codecs)

Deletes an otc_media_utils_codecs instance.

Parameters
supported_codecsThe otc_media_utils_codecs instance to be deleted.
Returns
Return value indicating either error or success.

◆ otc_media_utils_get_supported_codecs()

otc_status otc_media_utils_get_supported_codecs ( otc_media_utils_codecs **  supported_codecs)

Updates a otc_media_utils_codecs struct with the media codecs that are available on the device.

Parameters
supported_codecsOutput parameter for a structure representing the media codecs available on the device. The developer is responsible for releasing the memory allocated after using it.
Returns
Return value indicating either error or success.