ml_media_webvtt.h
Classes
Name | |
---|---|
struct | MLWebVTTData WebVTT data structure. |
Types
Name | |
---|---|
typedef struct MLWebVTTData | MLWebVTTData WebVTT data structure. |
Enums
Name | |
---|---|
enum | MLWebVTTOrientation { MLWebVTTOrientation_Horizontal = 0, MLWebVTTOrientation_Vertical = 1, MLWebVTTOrientation_Ensure32Bits = 0x7FFFFFFF } Cue orientation setting. |
enum | MLWebVTTDirection { MLWebVTTDirection_Default = 0, MLWebVTTDirection_LeftToRight = 1, MLWebVTTDirection_RightToLeft = 2, MLWebVTTDirection_Ensure32Bits = 0x7FFFFFFF } Cue direction setting. |
enum | MLWebVTTAlign { MLWebVTTAlign_Start = 0, MLWebVTTAlign_Middle = 1, MLWebVTTAlign_End = 2, MLWebVTTAlign_Left = 3, MLWebVTTAlign_Right = 4, MLWebVTTAlign_Ensure32Bits = 0x7FFFFFFF } Cue aligment setting. |
Enums Documentation
MLWebVTTOrientation
Enumerator | Value | Description |
---|---|---|
MLWebVTTOrientation_Horizontal | 0 | |
MLWebVTTOrientation_Vertical | 1 | |
MLWebVTTOrientation_Ensure32Bits | 0x7FFFFFFF | Ensure enum is represented as 32 bits. |
Cue orientation setting.
API Level:
- 4
MLWebVTTDirection
Enumerator | Value | Description |
---|---|---|
MLWebVTTDirection_Default | 0 | |
MLWebVTTDirection_LeftToRight | 1 | |
MLWebVTTDirection_RightToLeft | 2 | |
MLWebVTTDirection_Ensure32Bits | 0x7FFFFFFF | Ensure enum is represented as 32 bits. |
Cue direction setting.
API Level:
- 4
MLWebVTTAlign
Enumerator | Value | Description |
---|---|---|
MLWebVTTAlign_Start | 0 | |
MLWebVTTAlign_Middle | 1 | |
MLWebVTTAlign_End | 2 | |
MLWebVTTAlign_Left | 3 | |
MLWebVTTAlign_Right | 4 | |
MLWebVTTAlign_Ensure32Bits | 0x7FFFFFFF | Ensure enum is represented as 32 bits. |
Cue aligment setting.
Deprecated
Deprecated since 1.4.0. Scheduled for removal.
API Level:
- 4
Types Documentation
MLWebVTTData
typedef struct MLWebVTTData MLWebVTTData;
WebVTT data structure.
Deprecated
Deprecated since 1.4.0. Scheduled for removal.
API Level:
- 4
Source code
// %BANNER_BEGIN%
// ---------------------------------------------------------------------
// %COPYRIGHT_BEGIN%
// Copyright (c) 2017 Magic Leap, Inc. All Rights Reserved.
// Use of this file is governed by the Software License Agreement,
// located here: https://www.magicleap.com/software-license-agreement-ml2
// Terms and conditions applicable to third-party materials accompanying
// this distribution may also be found in the top-level NOTICE file
// appearing herein.
// %COPYRIGHT_END%
// ---------------------------------------------------------------------
// %BANNER_END%
#pragma once
#include "ml_api.h"
#include "ml_types.h"
ML_EXTERN_C_BEGIN
typedef enum MLWebVTTOrientation {
MLWebVTTOrientation_Horizontal = 0,
MLWebVTTOrientation_Vertical = 1,
MLWebVTTOrientation_Ensure32Bits = 0x7FFFFFFF
} MLWebVTTOrientation;
typedef enum MLWebVTTDirection {
MLWebVTTDirection_Default = 0,
MLWebVTTDirection_LeftToRight = 1,
MLWebVTTDirection_RightToLeft = 2,
MLWebVTTDirection_Ensure32Bits = 0x7FFFFFFF
} MLWebVTTDirection;
typedef enum MLWebVTTAlign {
MLWebVTTAlign_Start = 0,
MLWebVTTAlign_Middle = 1,
MLWebVTTAlign_End = 2,
MLWebVTTAlign_Left = 3,
MLWebVTTAlign_Right = 4,
MLWebVTTAlign_Ensure32Bits = 0x7FFFFFFF
} MLWebVTTAlign;
typedef ML_DEPRECATED_MSG("Use standard Android SDK APIs.") struct MLWebVTTData {
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;
} MLWebVTTData;
ML_EXTERN_C_END