-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
70 lines (60 loc) · 1.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Browsercast</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<link rel="stylesheet" href="styles.css">
<script type="module">
import { initializeCastApi } from './sender/sender.js';
window['__onGCastApiAvailable'] = isAvailable => {
if (isAvailable) initializeCastApi();
else document.documentElement.classList.add('unsupported');
};
</script>
<script
src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"
defer
></script>
<script nomodule>
document.documentElement.classList.add('unsupported');
</script>
<script
src="https://unpkg.com/[email protected]/dist/focus-visible.js"
async
></script>
<script src="sender/range-progress.js" async></script>
</head>
<body>
<noscript class="message">Enable Javascript</noscript>
<div class="message message--unsupported">You browser is not supported</div>
<input class="file-input" type="file" title="Select file" multiple autofocus>
<div class="file-select">Drag files here or click to select</div>
<div class="controls">
<button class="controls__button play-button" disabled></button>
<div class="controls__time time-label">0:00 / 0:00</div>
<input
type="range"
class="controls__range progress-range"
step="any"
value="0"
max="0"
disabled
>
<button class="controls__button volume-button" disabled></button>
<input
type="range"
class="controls__range volume-range"
step="any"
value="1"
max="1"
disabled
>
<button class="controls__button subtitles-button" hidden></button>
<button
is="google-cast-button"
class="controls__button cast-button"
></button>
</div>
</body>
</html>