-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
63 lines (62 loc) · 4.08 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Custom UI</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet" />
<link href="style.css" rel="stylesheet" />
<script src="https://cdn.theoplayer.com/dash/theoplayer/THEOplayer.js"></script>
<script async src="https://unpkg.com/@theoplayer/web-ui@1"></script>
<script async src="../utils.js"></script>
</head>
<body>
<!--
libraryLocation: For demonstration purposes, we use the theoplayer.com CDN.
For production use, we recommend hosting THEOplayer yourself
and changing this (as well as the <script> and <link> tags above)
to point to THEOplayer's location on your own website.
licenseUrl: Change this to point to your THEOplayer license file.
Alternatively, replace it with a "license" property whose value is your THEOplayer license itself.
-->
<theoplayer-ui
configuration='{"libraryLocation":"https://cdn.theoplayer.com/dash/theoplayer/","licenseUrl":"../../../../../theoplayer-license.txt"}'
source='{"sources":{"src":"https://cdn.theoplayer.com/video/big_buck_bunny/big_buck_bunny.m3u8"},"metadata":{"title":"Big Buck Bunny"},"textTracks":[{"default":true,"src":"https://cdn.theoplayer.com/video/big_buck_bunny/thumbnails.vtt","label":"thumbnails","kind":"metadata"}]}'
>
<theoplayer-control-bar slot="top-chrome" class="top-chrome">
<span class="title">Big Buck Bunny</span>
<span class="spacer"></span>
<theoplayer-language-menu-button menu="language-menu" mobile-only></theoplayer-language-menu-button>
<theoplayer-settings-menu-button menu="settings-menu" mobile-only></theoplayer-settings-menu-button>
<theoplayer-airplay-button mobile-only></theoplayer-airplay-button>
<theoplayer-chromecast-button mobile-only></theoplayer-chromecast-button>
</theoplayer-control-bar>
<theoplayer-loading-indicator slot="centered-loading" no-auto-hide></theoplayer-loading-indicator>
<div slot="centered-chrome" class="centered-chrome">
<theoplayer-play-button></theoplayer-play-button>
</div>
<div class="bottom-chrome">
<theoplayer-control-bar>
<theoplayer-time-range></theoplayer-time-range>
</theoplayer-control-bar>
<theoplayer-control-bar>
<theoplayer-play-button mobile-hidden></theoplayer-play-button>
<theoplayer-mute-button></theoplayer-mute-button>
<theoplayer-volume-range mobile-hidden></theoplayer-volume-range>
<theoplayer-time-display show-duration></theoplayer-time-display>
<span class="spacer"></span>
<theoplayer-language-menu-button menu="language-menu" mobile-hidden></theoplayer-language-menu-button>
<theoplayer-settings-menu-button menu="settings-menu" mobile-hidden></theoplayer-settings-menu-button>
<theoplayer-airplay-button mobile-hidden></theoplayer-airplay-button>
<theoplayer-chromecast-button mobile-hidden></theoplayer-chromecast-button>
<theoplayer-fullscreen-button></theoplayer-fullscreen-button>
</theoplayer-control-bar>
</div>
<theoplayer-language-menu id="language-menu" slot="menu" hidden></theoplayer-language-menu>
<theoplayer-settings-menu id="settings-menu" slot="menu" hidden></theoplayer-settings-menu>
<theoplayer-error-display slot="error"></theoplayer-error-display>
</theoplayer-ui>
</body>
</html>