media_utils.h

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.

Data structures: otc_media_utils_codecs

Includes: base.h, config.h

typedef otc_video_codec_type

Video codec type type definition.

typedef enum otc_video_codec_type otc_video_codec_type;

enum otc_video_codec_type

Video codec type enum.

Name Value Description
OTC_VIDEO_CODEC_UNKNOWN 0 Video codec unknown (used for stats reports)
OTC_VIDEO_CODEC_VP8 1 Video codec type for VP8.
OTC_VIDEO_CODEC_H264 2 Video codec type for H.264.
OTC_VIDEO_CODEC_VP9 3 Video codec type for VP9.

Functions

Name Description
otc_media_utils_get_supported_codecs(supported_codecs) → {otc_status} Updates a otc_media_utils_codecs struct with the media codecs that are available on the device.
otc_media_utils_codecs_delete(supported_codecs) → {otc_status} Deletes an otc_media_utils_codecs instance.

otc_media_utils_get_supported_codecs(supported_codecs) → {otc_status}

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

Parameters:
Name Type Description
supported_codecs otc_media_utils_codecs * * Output 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.

otc_media_utils_codecs_delete(supported_codecs) → {otc_status}

Deletes an otc_media_utils_codecs instance.

Parameters:
Name Type Description
supported_codecs otc_media_utils_codecs * The otc_media_utils_codecs instance to be deleted.
Returns:

Return value indicating either error or success.