-
Notifications
You must be signed in to change notification settings - Fork 58
/
main.html
140 lines (136 loc) · 6.66 KB
/
main.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
<!DOCTYPE html>
<!--
Copyright 2018 Google Inc. All rights reserved.
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>
<title>Media Source and Encrypted Media Conformance Tests</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="testArea" style="display: none"></div>
<script type="text/javascript" async defer>
// Set global variable before loading closure scripts.
var goog = goog || {};
goog.global = this || self;
goog.global.CLOSURE_NO_DEPS = true;
// Do NOT Change order of script sources!
var scriptSources = [
"third_party/closure-library/closure-library/closure/goog/base.js",
"third_party/closure-library/closure-library/closure/goog/debug/error.js",
"third_party/closure-library/closure-library/closure/goog/dom/nodetype.js",
"third_party/closure-library/closure-library/closure/goog/asserts/asserts.js",
"third_party/closure-library/closure-library/closure/goog/array/array.js",
"third_party/closure-library/closure-library/closure/goog/crypt/crypt.js",
"third_party/closure-library/closure-library/closure/goog/string/typedstring.js",
"third_party/closure-library/closure-library/closure/goog/string/const.js",
"third_party/closure-library/closure-library/closure/goog/fs/url.js",
"third_party/closure-library/closure-library/closure/goog/html/trustedtypes.js",
"third_party/closure-library/closure-library/closure/goog/i18n/bidi.js",
"third_party/closure-library/closure-library/closure/goog/html/trustedresourceurl.js",
"third_party/closure-library/closure-library/closure/goog/string/internal.js",
"third_party/closure-library/closure-library/closure/goog/html/safeurl.js",
"third_party/closure-library/closure-library/closure/goog/html/safestyle.js",
"third_party/closure-library/closure-library/closure/goog/dom/asserts.js",
"third_party/closure-library/closure-library/closure/goog/functions/functions.js",
"third_party/closure-library/closure-library/closure/goog/dom/htmlelement.js",
"third_party/closure-library/closure-library/closure/goog/dom/tagname.js",
"third_party/closure-library/closure-library/closure/goog/object/object.js",
"third_party/closure-library/closure-library/closure/goog/dom/tags.js",
"third_party/closure-library/closure-library/closure/goog/html/safescript.js",
"third_party/closure-library/closure-library/closure/goog/html/safestylesheet.js",
"third_party/closure-library/closure-library/closure/goog/labs/useragent/util.js",
"third_party/closure-library/closure-library/closure/goog/labs/useragent/browser.js",
"third_party/closure-library/closure-library/closure/goog/html/safehtml.js",
"third_party/closure-library/closure-library/closure/goog/html/uncheckedconversions.js",
"third_party/closure-library/closure-library/closure/goog/dom/safe.js",
"third_party/closure-library/closure-library/closure/goog/string/string.js",
"third_party/closure-library/closure-library/closure/goog/labs/useragent/engine.js",
"third_party/closure-library/closure-library/closure/goog/labs/useragent/platform.js",
"third_party/closure-library/closure-library/closure/goog/reflect/reflect.js",
"third_party/closure-library/closure-library/closure/goog/useragent/useragent.js",
"third_party/closure-library/closure-library/closure/goog/useragent/product.js",
"third_party/closure-library/closure-library/closure/goog/crypt/base64.js",
"third_party/protocolbuffers/protobuf/js/binary/constants.js",
"third_party/protocolbuffers/protobuf/js/binary/utils.js",
"third_party/protocolbuffers/protobuf/js/binary/arith.js",
"third_party/protocolbuffers/protobuf/js/binary/decoder.js",
"third_party/protocolbuffers/protobuf/js/binary/encoder.js",
"third_party/protocolbuffers/protobuf/js/binary/reader.js",
"third_party/protocolbuffers/protobuf/js/binary/writer.js",
"third_party/protocolbuffers/protobuf/js/map.js",
"third_party/protocolbuffers/protobuf/js/message.js",
"harness/polyfill.js",
"harness/util.js",
"harness/constants.js",
"harness/key.js",
"harness/focusManager.js",
"harness/logger.js",
"harness/xhr.js",
"harness/timeout.js",
"harness/testView.js",
"harness/compactTestList.js",
"harness/compactTestView.js",
"harness/test.js",
"harness/testTypes.js",
"lib/codecs/av1Codec.js",
"lib/codecs/vp9Codec.js",
"lib/streams/aac.js",
"lib/streams/opus.js",
"lib/streams/ac3.js",
"lib/streams/eac3.js",
"lib/streams/h264.js",
"lib/streams/vp9.js",
"lib/streams/av1/clear.js",
"lib/streams/av1/senc.js",
"lib/streams/av1.js",
"lib/streams/mediaStreams.js",
"lib/mse/msutil.js",
"lib/mse/mediaSourcePortability.js",
"lib/mse/videoPerformance.js",
"lib/eme/licenseRequestReader.js",
"lib/eme/encryptedMediaPortability.js",
"lib/eme/licenseManager.js",
"lib/eme/emeHandler.js",
"lib/eme/emutil.js",
"lib/parsers/mp4.js",
"lib/parsers/webm.js",
"media/conformanceTest.js",
"media/mseCodecTest.js",
"media/emeTest.js",
"media/progressiveTest.js",
"media/playbackperfTest.js",
"media/sphericalOnCobaltTest.js",
"harness/main.js"
];
/*
* Load each script sequentially but marked as async so cobalt is able to pause/suspend
* the loading of YTS scripts and return later to finish executing
*/
(function loadNextScript() {
if (scriptSources.length) {
var script = document.createElement('script');
script.src = scriptSources[0];
script.async = true;
script.defer = true;
script.onload = function() {
scriptSources.shift();
loadNextScript();
}
document.head.appendChild(script);
} else {
startMseTest(testVersion);
}
})();
</script>
</body>
</html>