whee
This commit is contained in:
parent
70d6c7366a
commit
cde10f5bf7
8 changed files with 126 additions and 52 deletions
47
mp3.html
47
mp3.html
|
|
@ -5,36 +5,41 @@
|
|||
<title>HLS WebM test with codec</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>HLS WebM test with codec</h1>
|
||||
<h1>HLS tests with MP3 audio</h1>
|
||||
<p>The video will try to load an HLS containing VP9-in-MP4 and fallback variants, with MP3 audio:</p>
|
||||
<video id=hls1 controls width=640 height=360>
|
||||
<video controls width=640 height=360>
|
||||
<source type=application/vnd.apple.mpegurl src=av-mp3-mp4.m3u8>
|
||||
</video>
|
||||
<p id=err1></p>
|
||||
|
||||
<p>And with MP3 audio and only H.264 (marked as mp4a.40.34):</p>
|
||||
<video id=hls2 controls width=640 height=360>
|
||||
<video controls width=640 height=360>
|
||||
<source type=application/vnd.apple.mpegurl src=av-mp3-h264.m3u8>
|
||||
</video>
|
||||
<p id=err2></p>
|
||||
|
||||
<p>And with MP3-in-MP4 audio (marked as mp3):</p>
|
||||
<video id=hls3 controls width=640 height=360>
|
||||
<p>And with MP3-in-MP4 audio (marked as mp4a.6b):</p>
|
||||
<video controls width=640 height=360>
|
||||
<source type=application/vnd.apple.mpegurl src=av-mp3mp4-h264.m3u8>
|
||||
</video>
|
||||
<p id=err3></p>
|
||||
|
||||
<p>And with MP3-in-MP4 audio (marked as mp4a.40.34):</p>
|
||||
<video id=hls4 controls width=640 height=360>
|
||||
<video controls width=640 height=360>
|
||||
<source type=application/vnd.apple.mpegurl src=av-mp3mp4b-h264.m3u8>
|
||||
</video>
|
||||
<p id=err4></p>
|
||||
|
||||
<p>And with MP3-in-TS audio:</p>
|
||||
<video id=hls5 controls width=640 height=360>
|
||||
<p>And with MP3-in-TS audio (marked as mp4a.40.34):</p>
|
||||
<video controls width=640 height=360>
|
||||
<source type=application/vnd.apple.mpegurl src=av-ts-h264.m3u8>
|
||||
</video>
|
||||
<p id=err5></p>
|
||||
|
||||
<p>Now VP9 plus MP3 combined in MP4 (marked as mp4a.6b)</p>
|
||||
<video controls width=640 height=360>
|
||||
<source type=application/vnd.apple.mpegurl src=combined-vp9-mp3.m3u8>
|
||||
</video>
|
||||
|
||||
<p>Now VP9 plus MP3 combined in MP4 (direct playlist)</p>
|
||||
<video controls width=640 height=360>
|
||||
<source type=application/vnd.apple.mpegurl src=combined-vp9-mp3-mp4.m3u8>
|
||||
</video>
|
||||
|
||||
<script>
|
||||
let codes = {
|
||||
|
|
@ -50,12 +55,16 @@
|
|||
err.textContent = `${code} ${codeName}: ${message}`;
|
||||
});
|
||||
}
|
||||
errify(hls1, err1);
|
||||
errify(hls2, err2);
|
||||
errify(hls3, err3);
|
||||
errify(hls4, err4);
|
||||
errify(hls5, err5);
|
||||
</script>
|
||||
for (let hls of document.querySelectorAll('video')) {
|
||||
let err = document.createElement('p');
|
||||
if (hls.nextSibling) {
|
||||
hls.parentNode.insertBefore(err, hls.nextSibling);
|
||||
} else {
|
||||
hls.parentNode.appendChild(err);
|
||||
}
|
||||
errify(hls, err);
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue