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
shaka
src
js
mse
media_error.cc
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
#include "
src/js/mse/media_error.h
"
16
17
namespace
shaka
{
18
namespace
js {
19
namespace
mse {
20
21
MediaError::MediaError
(
MediaErrorCode
code,
const
std::string&
message
)
22
: code(code), message(message) {}
23
// \cond Doxygen_Skip
24
MediaError::~MediaError() {}
25
// \endcond Doxygen_Skip
26
27
28
MediaErrorFactory::MediaErrorFactory
() {
29
AddConstant(
"MEDIA_ERR_ABORTED"
,
MEDIA_ERR_ABORTED
);
30
AddConstant(
"MEDIA_ERR_NETWORK"
,
MEDIA_ERR_NETWORK
);
31
AddConstant(
"MEDIA_ERR_DECODE"
,
MEDIA_ERR_DECODE
);
32
AddConstant(
"MEDIA_ERR_SRC_NOT_SUPPORTED"
,
MEDIA_ERR_SRC_NOT_SUPPORTED
);
33
34
AddReadOnlyProperty(
"code"
, &
MediaError::code
);
35
AddReadOnlyProperty(
"message"
, &
MediaError::message
);
36
}
37
38
}
// namespace mse
39
}
// namespace js
40
}
// namespace shaka
shaka::js::mse::MEDIA_ERR_SRC_NOT_SUPPORTED
Definition:
media_error.h:32
shaka
Definition:
async_results.h:25
shaka::js::mse::MediaError::MediaError
MediaError(MediaErrorCode code, const std::string &message)
Definition:
media_error.cc:21
shaka::js::mse::MediaErrorFactory::MediaErrorFactory
MediaErrorFactory()
Definition:
media_error.cc:28
shaka::js::mse::MediaError::message
const std::string message
Definition:
media_error.h:46
shaka::js::mse::MEDIA_ERR_NETWORK
Definition:
media_error.h:30
shaka::js::mse::MediaError::code
const MediaErrorCode code
Definition:
media_error.h:45
shaka::js::mse::MediaErrorCode
MediaErrorCode
Definition:
media_error.h:28
message
const char * message
Definition:
dom_exception.cc:36
shaka::js::mse::MEDIA_ERR_DECODE
Definition:
media_error.h:31
media_error.h
shaka::js::mse::MEDIA_ERR_ABORTED
Definition:
media_error.h:29
Generated by
1.8.13