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
events
progress_event.cc
Go to the documentation of this file.
1
// Copyright 2016 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/events/progress_event.h
"
16
17
namespace
shaka
{
18
namespace
js {
19
namespace
events {
20
21
ProgressEvent::ProgressEvent
(EventType
type
,
bool
length_computable,
22
double
loaded,
double
total)
23
:
ProgressEvent
(
to_string
(type), length_computable, loaded, total) {}
24
25
ProgressEvent::ProgressEvent
(
const
std::string&
type
,
bool
length_computable
,
26
double
loaded
,
double
total
)
27
:
Event
(type),
28
length_computable
(length_computable),
29
loaded
(loaded),
30
total
(total) {}
31
32
// \cond Doxygen_Skip
33
ProgressEvent::~ProgressEvent() {}
34
// \endcond Doxygen_Skip
35
36
37
ProgressEventFactory::ProgressEventFactory
() {
38
AddReadOnlyProperty(
"lengthComputable"
, &
ProgressEvent::length_computable
);
39
AddReadOnlyProperty(
"loaded"
, &
ProgressEvent::loaded
);
40
AddReadOnlyProperty(
"total"
, &
ProgressEvent::total
);
41
}
42
43
}
// namespace events
44
}
// namespace js
45
}
// namespace shaka
shaka::js::events::ProgressEvent
Definition:
progress_event.h:27
shaka::js::events::ProgressEvent::ProgressEvent
ProgressEvent(EventType, bool, double, double)
Definition:
progress_event.cc:21
shaka::js::events::ProgressEvent::loaded
const double loaded
Definition:
progress_event.h:38
shaka
Definition:
async_results.h:25
shaka::media::to_string
std::string to_string(VideoReadyState state)
Definition:
media_player.cc:32
type
ExceptionCode type
Definition:
dom_exception.cc:37
shaka::js::events::Event::Event
Event(const std::string &type)
Definition:
event.cc:28
shaka::js::events::Event::type
const std::string type
Definition:
event.h:70
shaka::js::events::ProgressEvent::total
const double total
Definition:
progress_event.h:39
shaka::js::events::ProgressEvent::length_computable
const bool length_computable
Definition:
progress_event.h:37
progress_event.h
shaka::js::events::ProgressEventFactory::ProgressEventFactory
ProgressEventFactory()
Definition:
progress_event.cc:37
Generated by
1.8.13