forked from mehotkhan/BandersnatchInteractive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
191 lines (171 loc) · 7.93 KB
/
index.html
File metadata and controls
191 lines (171 loc) · 7.93 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<!--
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org>
-->
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bandersnatch Interactive Player</title>
<meta name="description"
content="Stand-alone open-source interactive HTML player for Black Mirror - Bandersnatch" />
<meta name="keywords" content="Bandersnatch,Bandersnatch Interactive Player,Interactive Player,watch," />
<script src="assets/bandersnatch.js"></script>
<script src="assets/choices/ru.js"></script>
<script src="assets/choices/en.js"></script>
<script src="assets/choices/fr.js"></script>
<script src="assets/SegmentMap.js"></script>
<script src="assets/scripts.js"></script>
<script>
// keep localizable strings out of scripts.js
function askReset() {
if (confirm('Are you sure you want to reset all choices, breadcrumbs, and watched scenes?'))
reset();
}
</script>
<link rel="stylesheet" type="text/css" href="assets/styles.css">
</head>
<body>
<div>
<div id="c">
<section role="banner">
<div id="file-selector">
<div class="file-area">
<div class="contact">
<div>
<span class="default">You can select translation of choices: </span>
<select id="choice-translation">
<option value="ru">Russian</option>
<option value="en" selected>English</option>
<option value="fr">French</option>
</select>
<br>
This player remembers your choices and watch history: <a
href="javascript:askReset()">Reset all</a>
</div>
<p>
Authors:
<a href="https://github.com/joric/bandersnatch/">Original version</a> - <a
href="https://github.com/joric/">joric</a> |
Web page, subtitles - <a href="https://github.com/mehotkhan">Mehotkhan</a> |
Many fixes, improvements, and everything else - <a
href="https://github.com/CyberShadow">CyberShadow</a>
</p>
</div>
<input id="fileinput" type="file">
<div class="file-dummy">
<h2>Bandersnatch Interactive Player</h2>
<span class="default">Select Bandersnatch video file ( 5:12:14 ) </span>
<span class="success">Great, your file is selected</span>
<ul class="file-tips">
<li>This player is known to work only on Google Chrome or Chromium.</li>
<li>Obtain the Bandersnatch video file (duration should be 5:12:14).<br>
Tested with <code>Black.Mirror.Bandersnatch.2018.720p.WEB-DL.x264.DUAL.mkv</code>,<br>
<code>Black.Mirror.Bandersnatch.2018.MULTi.1080p.NF.WEB-DL.x264-NSP.mkv</code>,<br>
<code>Black.Mirror.Bandersnatch.2018.MULTi.720p.NF.WEB-DL.x264-NSP.mkv</code>.
</li>
<li>Drag it on top of this box (or click here to select it).</li>
<li>Subtitles in many languages are available. If you the french audio you can chose French Forced Subtitle</li>
<li>To change the subtitle:
<ol>
<li>Right click on the video</li>
<li>Enable "Show controls"</li>
<li>Click on the <span class="menu-item"></span> in the bottom-right</li>
<li>Select the desired subtitle</li>
<li>You can now hide the player controls in the same way as step 1-2.</li>
</ol>
</li>
<li>Note: do not use the "full screen" button in the video player if you enable "Show
controls".
Choice selection interface will not be visible if you do this.</li>
</ul>
<ul class="controls-tips">
<h6>Keyboard controls</h6>
<li><kbd>F</kbd> - Toggle fullscreen</li>
<li><kbd>R</kbd> - Restart video</li>
<li><kbd>→</kbd> / <kbd>←</kbd> - Jump to the next / previous segment (or interaction
zone)</li>
<li><kbd>↑</kbd> / <kbd>↓</kbd> - Speed up / slow down playback</li>
<li><kbd>Space</kbd> - Toggle play and pause</li>
</ul>
</div>
</div>
</div>
<div id="wrapper-video">
<video id="video" preload="metadata">
<source id="video-source" src="">
<track label="English" kind="subtitles" srclang="en"
src="subtitle/Black.Mirror.Bandersnatch.2018.WEBRip.x264-NoGRP.vtt" default>
<track label="Persian" kind="subtitles" srclang="en"
src="subtitle/Black.Mirror.Bandersnatch.2018.WEBRip.x264-NoGRP-persian-vtt-sharp.vtt">
<track label="Arabic" kind="subtitles" srclang="en"
src="subtitle/Black.Mirror.Bandersnatch.2018-arabic.vtt">
<track label="Spanish" kind="subtitles" srclang="en"
src="subtitle/Black.Mirror.Bandersnatch.2018.720p.espanish.vtt">
<track label="Hebrew" kind="subtitles" srclang="en"
src="subtitle/Black.Mirror.Bandersnatch.2018.Web-05.12.14-NF-UniHebSubs-hebrew.vtt">
<track label="Portuguese" kind="subtitles" srclang="en"
src="subtitle/Black.Mirror.Bandersnatch.2018.WEBRip.720p.portuguese.vtt">
<track label="Greek" kind="subtitles" srclang="en"
src="subtitle/black-mirror-bandersnatch-2018-nf-web-dl-720p-greek.vtt">
<track label="Turkish" kind="subtitles" srclang="en"
src="subtitle/BlackMirror.Bandersnatch-Turkish.vtt">
<track label="Polish" kind="subtitles" srclang="en"
src="subtitle/Czarne.lustro_.Bandersnatch.WEBRip.Netflix.pl.vtt">
<track label="Indonesian" kind="subtitles" srclang="en"
src="subtitle/Black.Mirror.Bandersnatch.2018.WEBRip.x264-NoGRP-Indonesian-vtt-sharp.vtt">
<track label="Russian" kind="subtitles" srclang="ru"
src="subtitle/BlackMirror.Bandersnatch-russian.vtt">
<track label="French" kind="subtitles" srclang="fr"
src="subtitle/Black.Mirror_.Bandersnatch.French.WEBRip.Netflix.vtt">
<track label="French Forced" kind="subtitles" srclang="de"
src="subtitle/Black.Mirror.Bandersnatch.2018.MULTi.1080p.NF.WEB-DL.x264-NSP_track9_[fre].vtt">
<track label="Hungarian" kind="subtitles" srclang="hu"
src="subtitle/Black.Mirror.Bandersnatch.2018.720p.WEBRip.XviD.AC3-FGT-Hungarian.vtt">
<track label="Korean" kind="subtitles" srclang="kr"
src="subtitle/[SubtitleTools.com] Black.Mirror.Bandersnatch.2018.REPACK.1080p.WEB.X264-DEFLATE.Korean.vtt">
<track label="German" kind="subtitles" srclang="de"
src="subtitle/Black.Mirror.Bandersnatch.2018.WEBRip.Netflix.German.vtt">
</video>
<div class="controls">
<div id="choiceCaption"></div>
<div id="progress"></div>
<div class="buttons">
<ul id="choices"></ul>
<ul id="interactionZones"></ul>
<ul id="nextSegments"></ul>
<ul id="nextSegment"></ul>
</div>
</div>
</div>
</div>
</section>
</div>
</body>
<script>
var select = document.getElementById('choice-translation');
select.addEventListener('change',(e)=>{
translated_choices = window[select.value];
console.log(select.value);
momentsBySegment = switch_choices();
})
</script>
</html>