-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.pp.html
137 lines (117 loc) · 2.61 KB
/
player.pp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE HTML>
<html lang='tr'>
<head>
<meta charset='utf-8'>
<title>$video_title $video_artist</title>
<meta name='viewport' content='width=device-width'>
<meta name='robots' content='noindex, nofollow'>
<meta name='generator' content='$0' />
<link rel='stylesheet' href='$stylesheet'>
<link rel='stylesheet' href='$plyr_css' />
<style>
body {
color: white;
background-color: black;
}
.pager li > a, .pager li > span {
display: inline-block;
padding: 5px 14px;
background-color: #000;
border: 2px solid #09ffff;
border-radius: 15px;
}
a {
color: #09ffff;
text-decoration: none;
}
.btn-info {
color: #000;
background-color: #5bc0de;
border-color: #46b8da;
}
</style>
</head>
<body>
<div class='container'>
<div class='row'>
<div class='col-xs-12'>
<div class='page-header'><h2><a href='../$_htmlfile'>$homeicon</a> <span class='text-muted'>/</span> $video_title $video_artist</h2></div>
</div>
</div>
<div class='row'><div class='col-xs-12'><nav><ul class='pager'>
#!
if [[ $prev ]]; then
#!
<li class='previous'><a href='$prev.html'><span aria-hidden='true'>←</span></a></li>
#!
fi
if [[ $next ]]; then
#!
<li class='next'><a href='$next.html'><span aria-hidden='true'>→</span></a></li>
#!
fi
#!
</ul></nav></div></div>
<div class='row'>
<div class='col-md-7'>
#!
if [[ $sflag == true ]]; then
#!
<video id='player' playsinline controls>
#!
else
#!
<video poster='../$thumbdir/$filename.jpg' id='player' playsinline controls>
#!
fi
#!
<source src='../$filename' type='video/mp4' />
#!
base_filename=$(basename "$filename" .mp4)
if [[ -f "$base_filename.vtt" ]]; then
if [[ "$base_filename.vtt" == "$base_filename.vtt" ]]; then
#!
<track kind="captions" label="$subtitle_language" src="../$base_filename.vtt" srclang="$subtitle_code" default />
#!
fi
fi
#!
</video>
<script src='$plyr_js'></script>
<script>
const player = new Plyr('video', {captions: {active: true}});
// Expose player so it can be used from the console
window.player = player;
</script>
</div>
</div>
<br>
<div class='row'>
<div class='col-xs-12'>
<p><a class='btn btn-info btn-lg' href='../$filename'>$downloadicon Download the video file ($filesize)</a></p>
#!
if [[ "$base_filename.vtt" == "$base_filename.vtt" ]]; then
#!
<p><a class='btn btn-info btn-lg' href='../$base_filename.vtt'>$vttdownloadicon Download the subtitle</a></p>
#!
fi
#!
</div>
</div>
#!
if [[ ! $eflag == true ]]; then
#!
<br>
<div class='row'>
<div class='col-xs-12'>
<pre class='text-muted' style='background-color:black'>
$exifinfo
</pre>
</div>
</div>
#!
fi
#!
</div>
</body>
</html>