MLWebVTTData
Module: Media Player
WebVTT data structure. More...
#include <ml_media_webvtt.h>
Public Attributes
| Type | Name |
|---|---|
| int64_t | start_time_ms |
| int64_t | end_time_ms |
| char * | body |
| char * | id |
| bool | snap_to_lines |
| MLWebVTTOrientation | orientation |
| MLWebVTTDirection | direction |
| float | relative_line_position |
| int32_t | line_number |
| float | text_position |
| float | size |
| MLWebVTTAlign | align |
Detailed Description
struct MLWebVTTData;
WebVTT data structure.
Deprecated
Deprecated since 1.4.0. Scheduled for removal.
API Level:
- 4
Public Attributes Documentation
start_time_ms
int64_t start_time_ms;
Track cue start time in milliseconds.
end_time_ms
int64_t end_time_ms;
Track cue end time in milliseconds.
body
char * body;
WebVTT file body encoded as UTF-8.
id
char * id;
A sequence of characters unique amongst all the WebVTT cue identifiers.
snap_to_lines
bool snap_to_lines;
A boolean indicating whether the line is an integer number of lines.
orientation
MLWebVTTOrientation orientation;
| Type | Description |
|---|---|
| MLWebVTTOrientation | Cue orientation setting. |
Orientation of the cue.
direction
MLWebVTTDirection direction;
| Type | Description |
|---|---|
| MLWebVTTDirection | Cue direction setting. |
The writing direction.
relative_line_position
float relative_line_position;
Relative cue line position.
line_number
int32_t line_number;
WebVTT cue line number.
text_position
float text_position;
The indent of the cue box in the direction defined by the writing direction.
size
float size;
WebVTT cue size.
align
MLWebVTTAlign align;
| Type | Description |
|---|---|
| MLWebVTTAlign | Cue aligment setting. |
WebVTT cue text alignment.