Shaka Player Embedded
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 
34 
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 <>
48  static bool FromJsValue(Handle<JsValue> source, shaka::StoredContent* dest) {
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_
const char * dest
Definition: media_utils.cc:31
ADD_DICT_FIELD(offlineUri, shaka::optional< std::string >)
const char * source
Definition: media_utils.cc:30
DECLARE_STRUCT_SPECIAL_METHODS_MOVE_ONLY(StoredContent)
static bool FromJsValue(Handle< JsValue > source, shaka::StoredContent *dest)