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
offline_externs.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_OFFLINE_EXTERNS_H_
18
#define SHAKA_EMBEDDED_INTERNAL_OFFLINE_EXTERNS_H_
19
20
#include <string>
21
#include <vector>
22
23
#include "
shaka/optional.h
"
24
#include "
shaka/offline_externs.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
StoredContent
:
Struct
{
33
DECLARE_STRUCT_SPECIAL_METHODS_MOVE_ONLY
(
StoredContent
);
34
35
ADD_DICT_FIELD
(offlineUri,
shaka::optional<std::string>
);
36
ADD_DICT_FIELD
(originalManifestUri, std::string);
37
ADD_DICT_FIELD
(duration,
double
);
38
ADD_DICT_FIELD
(size,
double
);
39
ADD_DICT_FIELD
(expiration,
double
);
40
ADD_DICT_FIELD
(appMetadata, std::unordered_map<std::string, std::string>);
41
};
42
43
44
}
// namespace js
45
46
template
<>
47
struct
impl::ConvertHelper
<
shaka
::
StoredContent
, void> {
48
static
bool
FromJsValue
(Handle<JsValue>
source
,
shaka::StoredContent
*
dest
) {
49
shaka::js::StoredContent
temp;
50
if
(!
ConvertHelper<shaka::js::StoredContent>::FromJsValue
(source, &temp)) {
51
return
false
;
52
}
53
*dest =
shaka::StoredContent
(std::move(temp));
54
return
true
;
55
}
56
};
57
58
59
}
// namespace shaka
60
61
#endif // SHAKA_EMBEDDED_INTERNAL_OFFLINE_EXTERNS_H_
dest
const char * dest
Definition:
media_utils.cc:31
optional.h
shaka::js::StoredContent::ADD_DICT_FIELD
ADD_DICT_FIELD(offlineUri, shaka::optional< std::string >)
shaka::StoredContent
Definition:
offline_externs.h:40
shaka::optional< std::string >
source
const char * source
Definition:
media_utils.cc:30
offline_externs.h
shaka
Definition:
async_results.h:25
struct.h
shaka::js::StoredContent::DECLARE_STRUCT_SPECIAL_METHODS_MOVE_ONLY
DECLARE_STRUCT_SPECIAL_METHODS_MOVE_ONLY(StoredContent)
convert_js.h
shaka::Struct
Definition:
struct.h:166
shaka::js::StoredContent
Definition:
offline_externs.h:32
shaka::impl::ConvertHelper< shaka::StoredContent, void >::FromJsValue
static bool FromJsValue(Handle< JsValue > source, shaka::StoredContent *dest)
Definition:
offline_externs.h:48
shaka::impl::ConvertHelper
Definition:
convert_js.h:82
Generated by
1.8.13