aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/controls.html
blob: afe8091bb6ef67e13f66a82fb9bd2cad316d8b0b (plain)
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
<div class="player-controls">
	<div class="player-progress">
		<label for="seek{id}" class="sr-only">Seek</label>
		<input id="seek{id}" class="player-progress-seek" type="range" min="0" max="100" step="0.5" value="0" data-player="seek">
		<progress class="player-progress-played" max="100" value="0">
			<span>0</span>% played
		</progress>
		<progress class="player-progress-buffer" max="100" value="0">
			<span>0</span>% buffered
		</progress>
	</div>
	<span class="player-controls-playback">
		<button type="button" data-player="restart">
			<svg><use xlink:href="#icon-restart"></use></svg>
			<span class="sr-only">Restart</span>
		</button>
		<button type="button" data-player="rewind">
			<svg><use xlink:href="#icon-rewind"></use></svg>
			<span class="sr-only">Rewind {seektime} seconds</span>
		</button>
		<button type="button" data-player="play">
			<svg><use xlink:href="#icon-play"></use></svg>
			<span class="sr-only">Play</span>
		</button>
		<button type="button" data-player="pause">
			<svg><use xlink:href="#icon-pause"></use></svg>
			<span class="sr-only">Pause</span>
		</button>
		<button type="button" data-player="fast-forward">
			<svg><use xlink:href="#icon-fast-forward"></use></svg>
			<span class="sr-only">Fast forward {seektime} seconds</span>
		</button>
		<span class="player-time">
			<span class="sr-only">Time</span>
			<span class="player-duration">00:00</span>
		</span>
	</span>
	<span class="player-controls-sound">
		<input class="inverted sr-only" id="mute{id}" type="checkbox" data-player="mute">
		<label id="mute{id}" for="mute{id}">
			<svg class="icon-muted"><use xlink:href="#icon-muted"></use></svg>
			<svg><use xlink:href="#icon-volume"></use></svg>
			<span class="sr-only">Toggle Mute</span>
		</label>

		<label for="volume{id}" class="sr-only">Volume</label>
		<input id="volume{id}" class="player-volume" type="range" min="0" max="10" step="0.5" value="0" data-player="volume">

		<input class="sr-only" id="captions{id}" type="checkbox" data-player="captions">
		<label for="captions{id}">
			<svg class="icon-captions-on"><use xlink:href="#icon-captions-on"></use></svg>
			<svg><use xlink:href="#icon-captions-off"></use></svg>
			<span class="sr-only">Toggle Captions</span>
		</label>

		<button type="button" data-player="fullscreen">
			<svg class="icon-exit-fullscreen"><use xlink:href="#icon-exit-fullscreen"></use></svg>
			<svg><use xlink:href="#icon-enter-fullscreen"></use></svg>
			<span class="sr-only">Toggle fullscreen</span>
		</button>
	</span>
</div>