forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
173 lines (160 loc) · 8.59 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
<!DOCTYPE html>
<!--
Copyright 2016 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Shaka Player Demo">
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#ffffff">
<title>Shaka Player Demo</title>
<link rel="preconnect" href="https://shaka-player-demo.appspot.com">
<link rel="preconnect" href="https://www.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preconnect" href="https://storage.googleapis.com">
<link rel="manifest" href="app_manifest.json">
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="../dist/demo.css">
<link rel="stylesheet" href="../dist/controls.css">
<script defer src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
<!-- MSS support is enabled by including this: -->
<script defer src="../node_modules/codem-isoboxer/dist/iso_boxer.min.js"></script>
<!-- MPEG-5 Part2 LCEVC support is enabled by including this: -->
<script defer src="../node_modules/lcevc_dec.js/dist/lcevc_dec.min.js"></script>
<!-- MDL is enabled by including this: -->
<script defer src="../node_modules/material-design-lite/dist/material.min.js"></script>
<!-- MDL modal dialogs are enabled by including these: -->
<script defer src="../node_modules/dialog-polyfill/dist/dialog-polyfill.js"></script>
<!-- Datalist-like fields are enabled by including these: -->
<script defer src="../node_modules/awesomplete/awesomplete.min.js"></script>
<!-- tippy.js requires popper.js to work properly: -->
<script defer src="../node_modules/popper.js/dist/umd/popper.min.js"></script>
<!-- Tooltips are made using tippy.js: -->
<script defer src="../node_modules/tippy.js/umd/index.min.js"></script>
<!-- Improved PWA capability on mobile Safari is enabled by loading pwacompat: -->
<script defer src="../node_modules/pwacompat/pwacompat.min.js"></script>
<!-- Include IMA SDK to enable client-side ad insertion: -->
<script type="text/javascript" src="https://imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
<!-- Include IMA DAI SDK to enable server-side ad insertion: -->
<script type="text/javascript" src="https://imasdk.googleapis.com/js/sdkloader/ima3_dai.js"></script>
<script>
COMPILED_JS = [
// The compiled library, with UI.
'../dist/shaka-player.ui.js',
// The compiled demo.
'../dist/demo.compiled.js',
];
COMPILED_DEBUG_JS = [
// The compiled library, with UI, debug mode.
'../dist/shaka-player.ui.debug.js',
// The compiled demo.
'../dist/demo.compiled.debug.js',
];
UNCOMPILED_JS = [
// Bootstrap the Shaka Player library through the Closure library.
'../node_modules/google-closure-library/closure/goog/base.js',
'../dist/deps.js',
// This is required for goog.asserts.
'../lib/debug/asserts.js',
// Compiled into Shaka Player, but outside of the Closure deps system.
'../node_modules/eme-encryption-scheme-polyfill/index.js',
// This file contains goog.require calls for all exported library classes.
'../shaka-player.uncompiled.js',
// Enable less, the CSS pre-processor.
'../node_modules/less/dist/less.js',
// These are the individual parts of the demo app.
'common/asset.js',
'common/assets.js',
'demo_uncompiled.js',
];
</script>
<!-- Load the compiled or uncompiled version of the code. -->
<script defer src="load.js"></script>
</head>
<body>
<div id="main-layout" class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="app-header mdl-layout__header should-hide-in-no-input-mode">
<header class="mdl-layout__header-row" id="nav-button-container">
<img alt="Shaka Player Logo" src="shaka_logo_trans.png" class="logo" />
<button id="nav-button-front" class="mdl-button mdl-js-button mdl-js-ripple-effect should-disable-on-fail" defaultselected tab-identifier="HOME">HOME</button>
<button id="nav-button-search" class="mdl-button mdl-js-button mdl-js-ripple-effect should-disable-on-fail" tab-identifier="ALL_CONTENT">ALL CONTENT</button>
<button id="nav-button-custom" class="mdl-button mdl-js-button mdl-js-ripple-effect should-disable-on-fail" tab-identifier="CUSTOM CONTENT">CUSTOM CONTENT</button>
<div class="mdl-layout-spacer"></div>
<button id="bug-button" class="mdl-button mdl-js-button mdl-js-ripple-effect should-disable-on-fail">REPORT BUG</button>
<div class="version-block">
<span class="version-string"></span>
</div>
</header>
</header>
<div class="version-block hidden should-show-in-no-input-mode">
<span class="version-string"></span>
</div>
<div class="mdl-layout__drawer hamburger-menu">
<div id="hamburger-menu-title" class="mdl-layout-title">
<div>Shaka Player Demo Config</div>
<div class="mdl-layout-spacer"></div>
<button id="drawer-close-button" class="mdl-button mdl-js-button mdl-button--icon should-disable-on-fail"><i class="material-icons-round">close</i></button>
</div>
<nav class="mdl-navigation" id="hamburger-menu-contents">
</nav>
</div>
<div id="error-display" class="hidden">
<div id="error-display-close-button">x</div>
<a id="error-display-link" href="#"></a>
</div>
<main class="mdl-layout__content" id="main-div">
<div id="video-bar" class="hidden">
<div data-shaka-player-container data-shaka-player-cast-receiver-id="07AEE832" class="video-container">
<video data-shaka-player autoplay playsinline id="video" crossorigin="anonymous"></video>
</div>
</div>
<div id="visualizer-div" class="hidden should-disable-on-fail">
<canvas id="visualizer-canvas"></canvas>
<div id="visualizer-controls-div"></div>
<div id="visualizer-screenshot-div"></div>
</div>
<div id="contents" class="should-hide-in-no-input-mode"></div>
<footer class="mdl-mega-footer should-hide-in-no-input-mode">
<div class="mdl-mega-footer__middle-section">
<div class="mdl-mega-footer__drop-down-section">
<h1 class="mdl-mega-footer__heading">PROJECT LINKS</h1>
<ul class="mdl-mega-footer__link-list">
<li><a rel="noopener" target="_blank" href="../docs/api/index.html">Documentation</a></li>
<li><a rel="noopener" target="_blank" href="https://www.apache.org/licenses/LICENSE-2.0">Apache License</a></li>
<li><a rel="noopener" target="_blank" href="https://github.com/shaka-project/shaka-player">Source on GitHub</a></li>
<li><a rel="noopener" target="_blank" href="https://www.npmjs.com/package/shaka-player">Package on NPM</a></li>
<li><a rel="noopener" target="_blank" href="../support.html">Browser Support Test</a></li>
</ul>
</div>
<div class="mdl-mega-footer__drop-down-section">
<h1 class="mdl-mega-footer__heading">CDN</h1>
<ul class="mdl-mega-footer__link-list">
<li><a rel="noopener" target="_blank" href="https://developers.google.com/speed/libraries/#shaka-player">Google Hosted Libraries</a></li>
<li><a rel="noopener" target="_blank" href="https://www.jsdelivr.com/package/npm/shaka-player">jsDelivr</a></li>
</ul>
</div>
<div class="mdl-mega-footer__drop-down-section">
<h1 class="mdl-mega-footer__heading">DEMO MODE</h1>
<ul class="mdl-mega-footer__link-list" id="compiled-links">
<li><a href="#build=compiled" id="compiled-link">Compiled (Release)</a></li>
<li><a href="#build=debug_compiled" id="debug-compiled-link">Compiled (Debug)</a></li>
<li><a href="#build=uncompiled" id="uncompiled-link">Uncompiled</a></li>
</ul>
</div>
</div>
</footer>
</main>
</div>
</body>
</html>