RDK Documentation (Open Sourced RDK Components)
vttCue.h
Go to the documentation of this file.
1
/*
2
* If not stated otherwise in this file or this component's license file the
3
* following copyright and licenses apply:
4
*
5
* Copyright 2018 RDK Management
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS,
15
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
18
*/
19
20
/**
21
* @file vttCue.h
22
*
23
* @brief Provides data structure to hold a WebVTT cue data
24
*
25
*/
26
27
#ifndef __VTT_CUE_H__
28
#define __VTT_CUE_H__
29
30
#include <string>
31
32
33
/**
34
* \struct VTTCue
35
* \brief Data structure to hold a VTT cue
36
*
37
* This is the data structure to store parsed WebVTT cues in AAMP
38
*/
39
struct
VTTCue
40
{
41
VTTCue
(
double
startTime,
double
duration, std::string text, std::string settings):
42
mStart(startTime), mDuration(duration),
43
mText(text), mSettings(settings)
44
{
45
46
}
47
48
double
mStart;
49
double
mDuration;
50
std::string mText;
51
std::string mSettings;
52
};
53
54
#endif
/* __VTT_CUE_H__ */
VTTCue
Data structure to hold a VTT cue.
Definition:
vttCue.h:39
components
generic
aamp
subtitle
vttCue.h
Generated on Thu Feb 9 2023 06:32:28 for RDK Documentation (Open Sourced RDK Components) by
1.8.17