Shaka Player Embedded
media_error.h
Go to the documentation of this file.
1 // Copyright 2018 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 #ifndef SHAKA_EMBEDDED_JS_MSE_MEDIA_ERROR_H_
16 #define SHAKA_EMBEDDED_JS_MSE_MEDIA_ERROR_H_
17 
18 #include <string>
19 
22 #include "src/mapping/enum.h"
23 
24 namespace shaka {
25 namespace js {
26 namespace mse {
27 
33 };
34 
39 class MediaError : public BackingObject {
40  DECLARE_TYPE_INFO(MediaError);
41 
42  public:
43  MediaError(MediaErrorCode code, const std::string& message);
44 
46  const std::string message;
47 };
48 
49 class MediaErrorFactory : public BackingObjectFactory<MediaError> {
50  public:
52 };
53 
54 } // namespace mse
55 } // namespace js
56 } // namespace shaka
57 
59 
60 #endif // SHAKA_EMBEDDED_JS_MSE_MEDIA_ERROR_H_
MediaError(MediaErrorCode code, const std::string &message)
Definition: media_error.cc:21
const std::string message
Definition: media_error.h:46
const MediaErrorCode code
Definition: media_error.h:45
CONVERT_ENUM_AS_NUMBER(shaka::js::mse, MediaErrorCode)