blob: 67e170d8bfb4ad19c346b97dd813fc2bc1de2de9 (
plain)
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
|
<html class="reftest-wait">
<script>
var cfg = {
codec: "vp8",
colorSpace: { primaries: "bt709" },
};
var decoder = new VideoDecoder({
output: () => {},
error: e => {
document.documentElement.removeAttribute("class");
},
});
decoder.configure(cfg);
try {
decoder.decode(
new EncodedVideoChunk({
type: "key",
timestamp: 0,
duration: 10,
data: new Uint8Array(10),
})
);
} catch (e) {
document.documentElement.removeAttribute("class");
}
</script>
</html>
|