UNPKG
panjareh
Version:
latest (1.0.16)
1.0.16
Panjareh using aparat and phoenix-video-player to play videos on desktops and tvs.
panjareh
/
src
/
config
/
playerConsts.js
16 lines
(14 loc)
•
323 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const
playerConsts = {
THRESHOLD
: {
WATCHING
:
3
,
SHORT_MOVIE
:
20
,
WATCHED
:
(
duration
) =>
{
let
_duration = duration;
if
(
typeof
_duration ===
"string"
) { _duration =
parseInt
(_duration); }
return
Math
.
round
((
97
* _duration) /
100
); }, }, };
export
default
playerConsts;