Shaka Player Embedded
Main Page
Exported Types
+
Tutorials
Basic Tutorial
Network Filters
Internal Docs
+
Internal Class List
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Typedefs
a
b
d
e
f
h
i
l
m
r
s
t
v
Enumerations
+
Enumerator
a
b
c
d
e
k
n
p
t
v
+
Properties
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
+
Related Functions
:
a
c
d
g
j
m
o
p
r
s
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
out
Debug
gen
shaka
src
js
track.h
Go to the documentation of this file.
1
// Copyright 2020 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
//
15
// AUTO-GENERATED: DO NOT EDIT
16
17
#ifndef SHAKA_EMBEDDED_INTERNAL_TRACK_H_
18
#define SHAKA_EMBEDDED_INTERNAL_TRACK_H_
19
20
#include <string>
21
#include <vector>
22
23
#include "
shaka/optional.h
"
24
#include "
shaka/track.h
"
25
#include "
src/mapping/convert_js.h
"
26
#include "
src/mapping/struct.h
"
27
28
namespace
shaka
{
29
30
namespace
js {
31
32
struct
Track
:
Struct
{
33
DECLARE_STRUCT_SPECIAL_METHODS_MOVE_ONLY
(
Track
);
34
35
ADD_DICT_FIELD
(
id
,
double
);
36
ADD_DICT_FIELD
(active,
bool
);
37
ADD_DICT_FIELD
(
type
, std::string);
38
ADD_DICT_FIELD
(bandwidth,
double
);
39
ADD_DICT_FIELD
(language, std::string);
40
ADD_DICT_FIELD
(label,
shaka::optional<std::string>
);
41
ADD_DICT_FIELD
(kind,
shaka::optional<std::string>
);
42
ADD_DICT_FIELD
(
width
,
shaka::optional<double>
);
43
ADD_DICT_FIELD
(
height
,
shaka::optional<double>
);
44
ADD_DICT_FIELD
(frameRate,
shaka::optional<double>
);
45
ADD_DICT_FIELD
(mimeType,
shaka::optional<std::string>
);
46
ADD_DICT_FIELD
(codecs,
shaka::optional<std::string>
);
47
ADD_DICT_FIELD
(audioCodec,
shaka::optional<std::string>
);
48
ADD_DICT_FIELD
(videoCodec,
shaka::optional<std::string>
);
49
ADD_DICT_FIELD
(primary,
bool
);
50
ADD_DICT_FIELD
(roles, std::vector<std::string>);
51
ADD_DICT_FIELD
(videoId,
shaka::optional<double>
);
52
ADD_DICT_FIELD
(audioId,
shaka::optional<double>
);
53
ADD_DICT_FIELD
(channelsCount,
shaka::optional<double>
);
54
ADD_DICT_FIELD
(audioBandwidth,
shaka::optional<double>
);
55
ADD_DICT_FIELD
(videoBandwidth,
shaka::optional<double>
);
56
};
57
58
59
}
// namespace js
60
61
template
<>
62
struct
impl::ConvertHelper
<
shaka
::
Track
, void> {
63
static
bool
FromJsValue
(Handle<JsValue>
source
,
shaka::Track
*
dest
) {
64
shaka::js::Track
temp;
65
if
(!
ConvertHelper<shaka::js::Track>::FromJsValue
(source, &temp)) {
66
return
false
;
67
}
68
*dest =
shaka::Track
(std::move(temp));
69
return
true
;
70
}
71
};
72
73
74
}
// namespace shaka
75
76
#endif // SHAKA_EMBEDDED_INTERNAL_TRACK_H_
shaka::impl::ConvertHelper< shaka::Track, void >::FromJsValue
static bool FromJsValue(Handle< JsValue > source, shaka::Track *dest)
Definition:
track.h:63
dest
const char * dest
Definition:
media_utils.cc:31
optional.h
shaka::Track
Definition:
track.h:44
shaka::optional< std::string >
width
int width
Definition:
sdl_frame_drawer.cc:49
source
const char * source
Definition:
media_utils.cc:30
shaka
Definition:
async_results.h:25
type
ExceptionCode type
Definition:
dom_exception.cc:37
shaka::js::Track
Definition:
track.h:32
height
int height
Definition:
sdl_frame_drawer.cc:50
struct.h
shaka::js::Track::ADD_DICT_FIELD
ADD_DICT_FIELD(id, double)
convert_js.h
shaka::Struct
Definition:
struct.h:166
shaka::js::Track::DECLARE_STRUCT_SPECIAL_METHODS_MOVE_ONLY
DECLARE_STRUCT_SPECIAL_METHODS_MOVE_ONLY(Track)
track.h
shaka::impl::ConvertHelper
Definition:
convert_js.h:82
Generated by
1.8.13