- removed mux.js (see https://github.com/shaka-project/shaka-player/issues/5912#issuecomment-1819153525)
- bump shaka to 4.6.1
- display MediaError code
This commit is contained in:
Shiny Nematoda 2023-11-25 07:12:50 +00:00
parent c52b622a70
commit 9bff19e0c7
3 changed files with 75 additions and 123 deletions

View file

@ -33,9 +33,6 @@ async function Stream() {
const { url, mime } = await useManifest(res);
if (mime == 'application/x-mpegURL')
window.muxjs ??= await import ('mux.js').then(mod => mod.default)
if (!window.audioPlayer) {
shaka.polyfill.installAll();
@ -113,7 +110,8 @@ async function Stream() {
})
.catch(err => {
console.error(err);
a.add('Error: ' + err.code);
if (err.code == 3016) a.add('MediaError: ' + err.data[0])
else a.add('Error: ' + err.code);
});
}