forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
208 lines (197 loc) · 7.81 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<!--
Copyright 2014 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>
<head>
<meta charset="utf-8">
<title>Shaka Player Test</title>
<link rel="shortcut icon" href="assets/favicon.ico">
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="controls.css">
<script src="load.js"></script>
<script src="controls.js"></script>
<script src="app.js"></script>
</head>
<body>
<table>
<!-- Common rows -->
<tr>
<td colspan="3" class="heading">Stream Setup</td>
</tr>
<tr>
<td>Force prefixed EME?</td>
<td colspan="2"><input id="forcePrefixed" type="checkbox"></td>
</tr>
<tr>
<td>Stream type:</td>
<td colspan="2">
<select id="streamTypeList" onchange="app.onStreamTypeChange()">
<option value="dash">DASH</option>
<option value="http">HTTP</option>
<option value="offline">Offline</option>
</select>
</td>
</tr>
<!-- HTTP stream rows -->
<tr class="http">
<td>Media URL:</td>
<td colspan="2" style="width: 400px;"><input id="mediaUrlInput" type="text" style="width: 98%;"></td>
</tr>
<tr class="http">
<td>Key system:</td>
<td colspan="2">
<select id="keySystemList">
<option value="org.w3.clearkey">org.w3.clearkey</option>
<option value="com.widevine.alpha">com.widevine.alpha</option>
<option value="net.bogus.keysystem">net.bogus.keysystem</option>
<option value="">(none)</option>
</select>
</td>
</tr>
<tr class="http">
<td>License server URL:</td>
<td colspan="2"><input id="licenseServerUrlInput" type="text" style="width: 98%;"></td>
</tr>
<tr class="http">
<td>Subtitles URL:</td>
<td colspan="2"><input id="subtitlesUrlInput" type="text" style="width: 98%;"></td>
</tr>
<!-- DASH stream rows -->
<tr class="dash">
<td>Preferred language:</td>
<td colspan="2"><input id="preferredLanguage"></td>
</tr>
<tr class="dash">
<td>Test manifest:</td>
<td colspan="2">
<select id="mpdList" onchange="app.onMpdChange()">
<option value="assets/angel_one.mpd">"Angel One" (TNG clip) - multilingual, subtitles, VP8</option>
<option value="assets/car-20120827-manifest.mpd">"Car" (YT DASH test) - MP4</option>
<option value="assets/car_cenc-20120827-manifest.mpd">"Car/CENC" (YT DASH EME test) - MP4, ClearKey</option>
<option value="assets/feelings_vp9-20130806-manifest.mpd">"Feelings" (YT DASH test) - VP9</option>
<option value="assets/feelings_audio_only-20130806-manifest.mpd">"Feelings" (YT DASH test) - Audio only</option>
<option value="assets/car_segmenttemplate.mpd">"Car/SegmentTemplate" (Chromecast test) - MP4 (no SIDX, video only), Widevine</option>
<option value="//download.tsi.telecom-paristech.fr/gpac/DASH_CONFORMANCE/TelecomParisTech/mp4-main-multi/mp4-main-multi-mpd-AV-NBS.mpd">"GPAC/SegmentList" (conformance test)</option>
<option value="assets/oops_cenc-20121114-signedlicenseurl-manifest.mpd">"Oops" (modified YT DASH EME test) - MP4, multi-DRM</option>
<option value="assets/oops_cenc_pssh.mpd">"Oops" (modified YT DASH EME test) - MP4, Widevine, PSSH in MPD</option>
<option value="//storage.googleapis.com/widevine-demo-media/sintel-1080p/dash.mpd">"Sintel" (1080p high bitrate test) - MP4</option>
<option value="//storage.googleapis.com/widevine-demo-media/sintel-multicodec-4k/dash.mpd">"Sintel" (4k) - MP4, VP8, VP9</option>
<option value="">(custom)</option>
</select>
</td>
</tr>
<tr class="dash">
<td>Custom manifest URL:</td>
<td>
<input id="manifestUrlInput" type="text" style="width: 98%;" oninput="app.onMpdCustom()">
</td>
<td>
<button id="storeButton" onclick="app.storeStream();">Store stream offline</button>
</td>
</tr>
<tr class="dash">
<td>
Custom WV license server URL:
<span title="If specified, overrides the license server URL for Widevine protected content.">[?]</span>
</td>
<td colspan="2">
<input id="wvLicenseServerUrlInput" type="text" style="width: 98%;">
</td>
</tr>
<!-- Offline rows -->
<tr class="offline">
<td>Offline Content:</td>
<td>
<select id="offlineStreamList"></select>
</td>
<td>
<button id="deleteButton" onclick="app.deleteStream();">Delete stream from storage</button>
</td>
</tr>
<!-- Common rows -->
<tr>
<td colspan="3">
<button id="loadButton" onclick="app.loadStream();">Load stream</button>
</td>
</tr>
</table>
<br>
<table>
<tr>
<td colspan="2" class="heading">Stream Info</td>
<td id="version"></td>
</tr>
<tr>
<td colspan="3">
Enable trick play?
<input id="trickPlayEnabled" type="checkbox" onchange="app.onTrickPlayChange()">
</td>
</tr>
<tr>
<td colspan="3">
Enable adaptation?
<input id="adaptationEnabled" type="checkbox" checked onchange="app.onAdaptationChange()">
</td>
</tr>
<tr>
<td>Available video tracks:</td>
<td><select id="videoTracks" onchange="app.onVideoChange()"></select></td>
<td><input type ="checkbox" id="cycleVideo" onchange="app.cycleVideo()">Cycle video tracks</button></td>
</tr>
<tr>
<td>Available audio tracks:</td>
<td><select id="audioTracks" onchange="app.onAudioChange()"></select></td>
<td><input type ="checkbox" id="cycleAudio" onchange="app.cycleAudio()">Cycle audio tracks</button></td>
</tr>
<tr>
<td>Available text tracks:</td>
<td><select id="textTracks" onchange="app.onTextChange()"></select></td>
<td>
Enable subs?
<input id="textEnabled" type="checkbox" onchange="app.onTextChange()">
</td>
</tr>
<tr>
<td>Active resolution:</td>
<td id="videoResDebug" colspan="2"></td>
</tr>
<tr>
<td>Buffered ahead:</td>
<td id="bufferedAheadDebug" colspan="2"></td>
</tr>
<tr>
<td>Buffered behind:</td>
<td id="bufferedBehindDebug" colspan="2"></td>
</tr>
</table>
<br>
<div id="videoContainer">
<video id="video" poster="assets/poster.jpg"
crossorigin="anonymous"
autoplay></video>
<div id="bufferingSpinner"></div>
<div id="videoControlsEnclosure"><div id="videoControls">
<input id="playButton" type="button">
<input id="pauseButton" type="button">
<input id="seekBar" type="range" step="any" min="0" max="1">
<input id="rewindButton" type="button">
<div id="currentTime">0:00</div>
<input id="fastForwardButton" type="button">
<input id="muteButton" type="button">
<input id="unmuteButton" type="button">
<input id="volumeBar" type="range" step="any" min="0" max="1">
<input id="fullscreenButton" type="button">
</div></div>
</div>
</body>
</html>