-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
354 lines (308 loc) · 18.3 KB
/
index.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
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<!DOCTYPE html>
<html>
<head>
<title>MediaFutures WP4 / Demo list</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://static.nrk.no/core-css/major/1/core-css.min.css">
<style>
body {
font-family: sans-serif;
margin: 8px;
}
.demolist {
width: 100%;
background white;
display: flex;
flex-wrap: wrap;
}
.demo {
margin: 5px;
padding: 5px;
background: rgba(0,0,0,0.1);
position: relative;
}
.demo .poster {
padding: 5px;
max-height: 250px;
max-width: 300px;
clear: both;
}
.demo .details {
min-width: 300px;
}
.demo .title {
padding-top: 25px;
font-weight: bold;
font-size: 1.4em;
}
.demo .description {
max-width: 400px;
}
.demo .links {
padding-top: 15px;
margin-left: 25px;
}
.demo .linkgroup {
padding: 3px;
}
.demo .linkgroupname {
font-weight: bold;
font-size: 1.2em;
}
.demo a {
padding: 5px;
font-weight: italic;
font-size: 1.0em;
}
.header {
width: 100%;
}
.header .maintitle {
font-weight: bold;
font-size: 75px;
z-index: -1;
color: gray;
}
.header .info {
font-weight: 1.4em;
max-width: 450px;
}
.header .mflogo {
position: absolute;
right: 0px;
top: 0px;
height: 100px;
}
@media (max-width: 640px) {
.demo .details {
width: 100%;
min-width: 0px;
}
}
.collapsed {
display: none;
}
.infobox{
max-width: 800px;
}
</style>
</head>
<body>
<div class="header">
<div class="maintitle">WP4 demos</div>
<a href="https://mediafutures.no"><img class="mflogo" src="MF_mainlogo.png"/ alt="MediaFutures project"></a>
</div>
<div class="demoinfo">
<h3>About the demos
<button id="showinfo" class="nrk-unset" aria-label="Click for info on demos">
<span class="material-icons">info</span>
</button>
</h3>
<div class="infobox collapsed collapsable" id="demoinfo">
<div class="infotext">
<p>
On this page you will find some demonstrations. The links will open in a new tab (or hold "shift" while clicking to open in a new window on a PC).
</p>
<p>
Demos tested on Chrome.
</p>
</div>
</div>
</div>
</div>
<div class="playerinfo">
<h3>About the player
<button id="showinfo" class="nrk-unset" aria-label="Click for info on player">
<span class="material-icons">info</span>
</button>
</h3>
<div class="infobox collapsed collapsable" id="playerinfo">
<img style="display: inline-block; float:right; max-width: 500px; width:100%" src="player.jpg">
<div class="infotext">
<p>
The player is based on late binding. This means that the player will put together various data just in time for playback, and that data sources are individual. For example, subtitles, video, audio tracks, positioning data (for dynamic aspect ratio) etc, are all separate tracks.
</p><p>
The player is heavily based on <a href='https://webtiming.github.io/timingsrc/'>timingsrc</a> libraries, and export sequencers and timing objects, and can therefore be controlled or expanded very easily.
</p><p>
The player can have a number of buttons, the ones mostly used here are shown in the screenshot.
<ul>
<li>The left most button (dot in a box) shows where "focus point" of the image is guessed to be (in green) or alternative areas (yellow). These can be either manually or AI generated.</li>
<li>The dot with arrows out from it toggles dynamic aspect ratio. This will fill the video to whatever screen size you have, focusing on the "focus point" if available. Is fully dynamic, so a screen rotate for example is perfectly usable.</li>
<li>The navigation buttons work as normal, both for multi device and single device demos. If multi device, the controls are of course shared between all devices of a single user. Full screen toggles are not shared between multiple devices.</li>
<li>Sound is default off, but can be toggled using the speaker symbol.</li>
<li>Audio descriptions are available as a separate track - in most demos this is a separate complete audio track, replacing the audio track of the video. If none is available, text-to-speech will be used to provide additional information if possible. In this case, the video player will pause if the speech overlaps with dialogue.</li>
<li>Subtitles are default on, but can be toggled with the subtitle button. Notice that they will be turned on and only reappear when the next subtitle is due.</li>
<li>New style subtitles can be toggled by pressing the face. These new subtitles will provide an avatar or image of the person speaking it, and each person has a different background color. They are more chat-style subtitles, and for dialogues they will appear in order (not placed as bubbles on top of the person speaking).</li>
<li>High contrast subtitles (if using new style) will provide very high contrast text for the subtitles.</li>
</ul>
</p><p>
The Multi-device synchronization is provided by <a href="https://mcorp.no">The Motion Corporation</a>.
</p>
</div>
</div>
</div>
<div class="demolist">
</div>
<template id="demotemplate">
<div class="demo">
<img class="poster" src="" aria-hidden="true">
<div class="details">
<div class="title"></div>
<div class="description"></div>
<div class="links"></div>
</div>
</div>
</template>
<template id="linkgrouptemplate">
<div class="linkgroup">
<div class="linkgroupname"></div>
<div class="linkarea>"></div>
</div>
</template>
<script>
document.querySelectorAll("#showinfo").forEach(e => {
e.addEventListener("click", evt => {
let item = evt.srcElement.parentElement.parentElement.parentElement.querySelector(".collapsable");
if (item.classList.contains("collapsed")) {
item.classList.remove("collapsed");
} else {
item.classList.add("collapsed");
}
});
});
let demos = [
{
title: "Debatten",
poster: "https://gfx.nrk.no/H79QL0kbEX4WLjatQXa3ag5VqpnRACa4kqUIcwq6iNkg",
description: "MediaFutures edition of <a target='_blank' href='https://tv.nrk.no/serie/debatten/202211/NNFA51110122/avspiller'>Debatten, 1. November 2022</a><br> Includes dynamic aspect ratio (MediaPipes AI), Fancy Subs (Automated, Whisper++).",
links: [
{name: "Video", href: "VideoPos/index.html?url=../res/NNFA51110122/NNFA51110122.json", group: "MultiDevice"},
{name: "Chat style", href: "/hack/viewer/?url=/sfi/res/NNFA51110122/NNFA51110122.json&info=false", group: "MultiDevice"},
{name: "Chat info", href: "/hack/viewer/?url=/sfi/res/NNFA51110122/NNFA51110122.json", group: "MultiDevice"},
{name: "Official subs", href: "VideoPos/index.html?url=../res/NNFA51110122/NNFA51110122.json&simplesubs=true", group: "MultiDevice"},
{name: "Video", href: "VideoPos/index.html?url=../res/NNFA51110122/NNFA51110122.json&single=true", group: "SingleDevice"},
{name: "Chat style", href: "/hack/viewer/?url=/sfi/res/NNFA51110122/NNFA51110122.json?single=true&info=false", group: "SingleDevice"}
]
},
{
title: "History Extra Podcast",
poster: "https://thumborcdn.acast.com/SWXv3trmVVCerPMckGWixylA3_4=/1000x1000/https%3A%2F%2Fassets.pippa.io%2Fshows%2F61b9ff061a8cbe34583cf079%2F08a0de92-3367-4858-ba13-3a474b2e7101.jpg",
description: "MediaFutures edition of <a target='_blank' href='https://www.historyextra.com/podcast/'>History Extra</a>. <br>Fully automatic using Whisper (large) and nvidia/speakerverification titanet (large) for transcribing and speaker identification. Info links are based on a Norwegian trained network for annotation combined with simple Wikipedia searches.",
links: [
{name: "Without info", href: "/hack/viewer/?url=/hack/datasets/podcast//history_extra.json&info=false", group: "MultiDevice"},
{name: "With info", href: "/hack/viewer/?url=/hack/datasets/podcast//history_extra.json", group: "MultiDevice"},
{name: "Without info", href: "/hack/viewer/?url=/hack/datasets/podcast//history_extra.json&info=false&single=true", group: "SingleDevice"},
{name: "With info", href: "/hack/viewer/?url=/hack/datasets/podcast//history_extra.json&single=true", group: "SingleDevice"}
]
},
{
title: "Ballspark",
poster: "https://imbo.vgtv.no/users/bt_/images/0fa50df921e3b9c44d31d00c9f9d98ad.jpg?t%5B%5D=1440q80",
description: "MediaFutures edition of <a target='_blank' href='https://www.bt.no/podkast/bt/program/100123'>Ballspark</a>. Soccer discussion (in Norwegian), quite heavy Bergen dialect. <br>Fully automatic using Whisper (large) and nvidia/speakerverification titanet (large) for transcribing and speaker identification. Info links are based on a Norwegian trained network for annotation combined with simple Wikipedia searches.",
links: [
{name: "Without info", href: "/hack/viewer/?url=/hack/datasets/bt//20221003-ballspark.json&info=false", group: "MultiDevice"},
{name: "With info", href: "/hack/viewer/?url=/hack/datasets/bt//20221003-ballspark.json", group: "MultiDevice"},
{name: "Without info", href: "/hack/viewer/?url=/hack/datasets/bt//20221003-ballspark.json&info=false&single=true", group: "SingleDevice"},
{name: "With info", href: "/hack/viewer/?url=/hack/datasets/bt//20221003-ballspark.json&single=true", group: "SingleDevice"}
]
},
{
title: "News in English",
poster: "https://main.elevkanalen.no/remote.jpg.ashx?w=360&dpi=72&format=jpg&quality=75&urlb64=aHR0cHM6Ly9tYWluLmVsZXZrYW5hbGVuLm5vL21lZGlhYmlibGlvdGVrL2ZvcnNpZGUvbmV3cy9OeWhldGVyX1RodW1iX1Jlc3N1cnNfTmV3cy1pbi1FbmdsaXNoMS5qcGc&hmac=BpeLY_dJj-g",
description: "MediaFutures edition of <a target='_blank' href='https://app.elevkanalen.no/nyheter/1559'>News in English</a>. Created for Norwegian school pupulils. Added some relevant articles manually, otherwise automated. <br>Texts created fully automatic using Whisper (large) and nvidia/speakerverification titanet (large) for transcribing and speaker identification. Info links are based on a Norwegian trained network for annotation combined with simple Wikipedia searches.",
links: [
{name: "Video", href: "VideoPos/index.html?url=/hack/datasets/tv2skole//News_in_english_44_2022.json", group: "MultiDevice"},
{name: "TextCast", href: "/hack/viewer/?url=/hack/datasets/tv2skole//News_in_english_44_2022.json", group: "MultiDevice"},
{name: "Video", href: "VideoPos/index.html?url=/hack/datasets/tv2skole//News_in_english_44_2022.json&single=true", group: "SingleDevice"},
{name: "TextCast", href: "/hack/viewer/?url=/hack/datasets/tv2skole//News_in_english_44_2022.json?single=true", group: "SingleDevice"}
]
},
{
title: "Lørdagsrådet",
poster: "https://gfx.nrk.no/Kpn7Nz2VMIdbn0fVllF8CQ4gIvAN3ijgbXim2qMWTFig",
description: "MediaFutures edition of <a target='_blank' href='https://radio.nrk.no/serie/loerdagsraadet/MYNR05004122'>Lørdagsrådet</a>. A discussion show with four panelists in a humourous, fast paced problem solving debate. <br>Fully automatic using Whisper (large) and nvidia/speakerverification titanet (large) for transcribing and speaker identification. Info links are based on a Norwegian trained network for annotation combined with simple Wikipedia searches.",
links: [
{name: "TextCast", href: "/hack/viewer/?url=/hack/datasets/nrk//lordagsraadet_20221008.json&info=false", group: "MultiDevice"},
{name: "TextCast", href: "/hack/viewer/?url=/hack/datasets/nrk//lordagsraadet_20221008.json&info=false&single=true", group: "SingleDevice"}
]
},
{
title: "Vikingane",
poster: "./res/Vikingane/poster.jpg",
description: "MediaFutures edition of <a target='_blank' href='https://tv.nrk.no/serie/vikingane/sesong/3/episode/1/avspiller'>Vikingane Series 3, episode 1</a>. Includes recorded audio descriptions, new subtitles and dynamic aspect ratio. AI Video uses an AI to position the dynamic aspect ratio.",
links: [
{name: "Video", href: "VideoPos/index.html?url=../res/Vikingane/vikingane_s03e01.json", group: "MultiDevice"},
{name: "Chat style", href: "VideoPos/chat_style.html?url=../res/Vikingane/vikingane_s03e01_ai.json", group: "MultiDevice"},
{name: "Video", href: "VideoPos/index.html?url=../res/Vikingane/vikingane_s03e01.json&single=true", group: "SingleDevice"},
{name: "AI Video", href: "VideoPos/index.html?url=../res/Vikingane/vikingane_s03e01_ai.json", group: "MultiDevice"},
{name: "English subs", href: "VideoPos/index.html?url=../res/Vikingane/vikingane_s03e01_ai.json&lang=en", group: "MultiDevice"}
]
},
{
title: "Valkyrien",
poster: "./res/Valkyrien/poster.jpg",
description: "MediaFutures edition of <a target='_blank' href='https://tv.nrk.no/serie/valkyrien/sesong/1/episode/1/avspiller'>Valkyrien Series 1, episode 1</a>. Includes recorded audio descriptions, new subtitles and dynamic aspect ratio. AI Video uses an AI to position the dynamic aspect ratio.",
links: [
{name: "Video", href: "VideoPos/index.html?url=../res/Valkyrien/Valkyrien_s01e01.json", group: "MultiDevice"},
{name: "Chat style", href: "VideoPos/chat_style.html?url=../res/Valkyrien/Valkyrien_s01e01_ai.json", group: "MultiDevice"},
{name: "Video", href: "VideoPos/index.html?url=../res/Valkyrien/Valkyrien_s01e01.json&single=true", group: "SingleDevice"},
{name: "AI Video", href: "VideoPos/index.html?url=../res/Valkyrien/Valkyrien_s01e01_ai.json", group: "MultiDevice"}
]
},
{
title: "Exit2",
poster: "./res/Exit2/poster.jpg",
description: "MediaFutures edition of <a target='_blank' href='https://tv.nrk.no/serie/exit/sesong/2/episode/1/avspiller'>Exit Series 2, episode 1</a>. Includes recorded audio descriptions, new subtitles and dynamic aspect ratio. AI Video uses an AI to position the dynamic aspect ratio.",
links: [
{name: "Video", href: "VideoPos/index.html?url=../res/Exit2/exit_s02e01.json", group: "MultiDevice"},
{name: "Chat style", href: "VideoPos/chat_style.html?url=../res/Exit2/exit_s02e01_ai.json", group: "MultiDevice"},
{name: "Video", href: "VideoPos/index.html?url=../res/Exit2/exit_s02e01.json&single=true", group: "SingleDevice"},
{name: "AI Video", href: "VideoPos/index.html?url=../res/Exit2/exit_s02e01_ai.json", group: "MultiDevice"},
{name: "English subs", href: "VideoPos/index.html?url=../res/Exit2/exit_s02e01_ai.json&lang=en", group: "MultiDevice"}
]
},
{
title: "Svaltards",
poster: "./res/svaltards/poster.jpg",
description: "This is a subtitled podcast (actually a radio documentary). It has been subtitled with fancy subtitles and there is also a slideshow edition where some visuals have been added. No controls or audio on the chat, so slides must be used to control it (for now).",
links: [
{name: "Slideshow", href: "VideoPos/slideshow.html?url=/sfi/res/svaltards/svaltards.json", group: "MultiDevice"},
{name: "Slideshow", href: "VideoPos/slideshow.html?url=/sfi/res/svaltards/svaltards.json&lang=en", group: "English"},
{name: "Chat style", href: "VideoPos/chat_style.html?url=../res/svaltards/svaltards.json", group: "MultiDevice"},
{name: "Chat style", href: "VideoPos/chat_style.html?url=../res/svaltards/svaltards.json&lang=en", group: "English"}
]
}
]
demos.forEach(demo => {
let template = document.querySelector("template#demotemplate").content.cloneNode(true);
let d = template.querySelector(".demo");
d.querySelector(".title").innerHTML = demo.title ;
d.querySelector(".description").innerHTML = demo.description || "";
d.querySelector(".poster").src = demo.poster || "generic_demo.jpg";
let linkarea = d.querySelector(".links");
demo.links.forEach(link => {
let a = document.createElement("a");
a.setAttribute("href", link.href);
a.setAttribute("target", "_blank");
a.setAttribute("aria-label", link.group + " " + link.name);
a.innerHTML = link.name;
if (!link.group) link.group = "Links";
let target = linkarea.querySelector("#" + link.group);
if (!target) {
temp2 = document.querySelector("template#linkgrouptemplate").content.cloneNode(true);
target = temp2.querySelector("div");
target.setAttribute("id", link.group);
target.setAttribute("title", demo.title + ", " + link.group);
target.querySelector(".linkgroupname").innerHTML = link.group;
linkarea.appendChild(target);
}
console.log("Checking #" + link.group);
linkarea.querySelector("#" + link.group).appendChild(a);
});
document.querySelector(".demolist").appendChild(d);
});
</script>
</body>
</html>