/
index.html
158 lines (148 loc) · 7.13 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
<!DOCTYPE html>
<!--
Copyright 2016 Google Inc.
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="manifest" href="app_manifest.json">
<link rel="icon" href="favicon.ico">
<!-- Load MDL, with the desired color scheme. -->
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-blue.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script defer src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
<!-- transmuxing support is enabled by including this: -->
<!-- TODO: Switch back to minified version (videojs/mux.js#173) -->
<script defer src="../node_modules/mux.js/dist/mux.js"></script>
<!-- MDL is enabled by including this: -->
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<!-- MDL modal dialogs are enabled by including these: -->
<script defer src="../node_modules/dialog-polyfill/dialog-polyfill.js"></script>
<link rel="stylesheet" href="../node_modules/dialog-polyfill/dialog-polyfill.css">
<!-- Datalist-like fields are enabled by including these: -->
<link rel="stylesheet" href="../node_modules/awesomplete/awesomplete.css" />
<script src="../node_modules/awesomplete/awesomplete.min.js" async></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.
'../third_party/closure/goog/base.js',
'../dist/deps.js',
// This is required for goog.asserts.
'../lib/debug/asserts.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_utils.js',
'asset_card.js',
'close_button.js',
'input.js',
'input_container.js',
'tooltip.js',
'main.js',
'front.js',
'search.js',
'custom.js',
'config.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">
<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>HOME</button>
<button id="nav-button-search" class="mdl-button mdl-js-button mdl-js-ripple-effect should-disable-on-fail">SEARCH</button>
<button id="nav-button-custom" class="mdl-button mdl-js-button mdl-js-ripple-effect should-disable-on-fail">CUSTOM CONTENT</button>
<div class="mdl-layout-spacer"></div>
<div id="version-block">
<span id="version-string"></span>
</div>
</header>
</header>
<div class="mdl-layout__drawer hamburger-menu">
<div id="hamburger-menu-title" class="mdl-layout-title">
Shaka Player Demo Config
<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">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="A15A181D" id="video-container">
<video data-shaka-player autoplay playsinline id="video"></video>
</div>
</div>
<div id="contents"></div>
<footer class="mdl-mega-footer">
<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/google/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>
</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>
<li><a rel="noopener" target="_blank" href="https://cdnjs.com/libraries/shaka-player">CDNJS</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>