blob: 1f2f94652051edb24dae2ad43c94be547d536d4d (
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
28
29
30
|
<!DOCTYPE HTML>
<html>
<head>
<title>Play mp3 file with multiple ID3v2 tags</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
add_task(async function testPlayMP3WithMultipleID3Tags() {
info(`adjust cache size`);
await SpecialPowers.pushPrefEnv(
// The second ID3v2 header is huge (4622361 bytes) so the first audio samle
// in this file is in the position 4945370, so we have to extend the size of
// the cache.
{"set": [["media.cache_size", 5000000]]}
);
info(`create audio and wait its loading`);
let audio = document.createElement('audio');
audio.src = "multi_id3v2.mp3";
document.body.appendChild(audio);
await new Promise(r => audio.onloadeddata = r);
ok(true, `finishing loading data.`)
});
</script>
</head>
<body>
</body>
</html>
|