![]() |
![]() |
![]() |
![]() |
Video subtitle and caption information
#include <mm/types.h> typedef struct mm_video_subtitle_info { uint32_t title; uint8_t total; int8_t current; struct mm_video_subtitle_attr { char lang[2]; uint8_t ext; } attr[MM_MAX_VIDEO_SUBTITLES]; } mm_video_subtitle_info_t;
The structure mm_video_subtitle_info_t carries information about a video's subtitles. It includes at least the members described in the table below.
Member | Type | Description |
---|---|---|
title | uint32_t | The title of video for which subtitle information is provided. |
total | uint8_t | The number of available subtitles. If this field is 0 (zero), no subtitles are available. |
current | int8_t | The current subtitle, which is in the range of 0 to total - 1 (number of available subtitles). If this field is set to -1, no subtitles are currently displayed. |
attr | array | An array of structures: mm_video_subtitle_attr_t, of length MM_MAX_VIDEO_SUBTITLES, containing subtitle languages information. |
The structure mm_video_subtitle_attr_t contains information about the languages of a video's subtitles. It includes at least the members described in the table below.
Member | Type | Description |
---|---|---|
lang | array | An array with two-character ISO 639-1 language codes for the subtitle. |
ext | uint8_t | Language extension codes. See mm_subpict_lang_ext. |
QNX Multimedia
mm_subpict_lang_ext, mme_video_get_subtitle_info(), mme_video_set_subtitle()
![]() |
![]() |
![]() |
![]() |