forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
190 lines (169 loc) · 7.16 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!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, maximum-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#ffffff">
<base target="_blank">
<title>Shaka Player Demo</title>
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="demo.css">
<link rel="stylesheet" href="controls.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Condensed">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script src="//www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
<script src="load.js"></script>
<script src="assets.js"></script>
<script src="demo_utils.js"></script>
<script src="main.js"></script>
<script src="asset_section.js"></script>
<script src="configuration_section.js"></script>
<script src="info_section.js"></script>
<script src="log_section.js"></script>
<script src="offline_section.js"></script>
<script src="controls.js"></script>
</head>
<body>
<div id="container">
<h1>Shaka Player <span id="version"></span></h1>
<div class="input">
<p>This is a demo of Google's Shaka Player, a JavaScript library for
adaptive video streaming.</p>
<p>Choose an asset and tap <strong>Load</strong>.
(On Android, you'll also need to press the play button on the
video.)</p>
<p class="links">
<a href="../docs/api/index.html">Documentation</a> |
<a href="https://github.com/google/shaka-player">Repo</a> |
<a href="https://www.npmjs.com/package/shaka-player">NPM</a> |
<a href="https://cdnjs.com/libraries/shaka-player">CDNJS</a>
</p>
<div class="flex">
<label for="assetList">Asset:</label>
<select id="assetList" class="flex-grow"></select>
</div>
<div id="customAsset">
<div class="flex">
<label for="manifestInput">Custom manifest:</label>
<input id="manifestInput" type="text" class="flex-grow">
</div>
<div class="flex">
<label for="licenseServerInput">Custom license server:</label>
<input id="licenseServerInput" type="text" class="flex-grow">
</div>
</div>
<div>
<button id="loadButton">Load</button>
</div>
</div>
<div id="errorDisplay">
<div id="errorDisplayCloseButton">x</div>
<a id="errorDisplayLink" href="#"></a>
</div>
<div id="videoContainer" class="overlay-parent">
<video id="video"
poster="//shaka-player-demo.appspot.com/assets/poster.jpg"
autoplay></video>
<div id="giantPlayButtonContainer" class="overlay">
<button id="giantPlayButton" class="material-icons">play_arrow</button>
</div>
<div id="bufferingSpinner" class="overlay">
<svg class="spinnerSvg" viewBox="25 25 50 50">
<circle class="spinnerPath" cx="50" cy="50" r="20"
fill="none" stroke-width="2" stroke-miterlimit="10" />
</svg>
</div>
<div id="castReceiverName" class="overlay"></div>
<div id="controlsContainer" class="overlay"><div id="controls">
<button id="playPauseButton" class="material-icons">play_arrow</button>
<label for="seekBar" class="for-screen-readers">seek</label>
<input id="seekBar" type="range" step="any" min="0" max="1" value="0">
<button id="rewindButton" class="material-icons">fast_rewind</button>
<div id="currentTime">0:00</div>
<button id="fastForwardButton" class="material-icons">fast_forward</button>
<button id="muteButton" class="material-icons">volume_up</button>
<label for="volumeBar" class="for-screen-readers">volume</label>
<input id="volumeBar" type="range" step="any" min="0" max="1" value="0">
<button id="castButton" class="material-icons">cast</button>
<button id="captionButton" class="material-icons">closed_caption</button>
<button id="fullscreenButton" class="material-icons">fullscreen</button>
</div></div>
</div>
<details id="logSection">
<summary>Logs</summary>
<div id="log"></div>
</details>
<details class="input">
<summary>Configuration</summary>
<div class="flex">
<label for="preferredAudioLanguage">Preferred audio language:</label>
<input id="preferredAudioLanguage" class="flex-grow" type="text">
</div>
<div class="flex">
<label for="preferredTextLanguage">Preferred text language:</label>
<input id="preferredTextLanguage" class="flex-grow" type="text">
</div>
<div>
<label for="showTrickPlay">Show trick play controls:</label>
<input id="showTrickPlay" type="checkbox">
</div>
<div>
<label for="enableAdaptation">Enable adaptation:</label>
<input id="enableAdaptation" type="checkbox" checked>
</div>
<div>
<label for="logToScreen">Log to the screen:</label>
<input id="logToScreen" type="checkbox">
</div>
</details>
<details class="input">
<summary>Info</summary>
<div class="flex">
<label for="variantTracks">Video+audio track combinations:</label>
<select id="variantTracks" class="flex-grow"></select>
</div>
<div class="flex">
<label for="textTracks">Text tracks:</label>
<select id="textTracks" class="flex-grow"></select>
</div>
<div>
<span class="label">Active resolution:</span>
<span id="videoResDebug"></span>
</div>
<div>
<span class="label">Buffered:</span>
<span id="bufferedDebug"></span>
</div>
</details>
<details id="offlineSection" class="input">
<summary>Offline</summary>
<div>
<button id="storeDelete">Store</button>
</div>
<div id="progressDiv">
<span class="label">Progress:</span>
<span id="progress">0</span>%
</div>
<div id="offlineNameDiv">
<label for="offlineName">Name:</label>
<input id="offlineName" class="flex-grow" type="text">
</div>
</details>
</div>
</body>
</html>