+ closes #136
+ display player errors in ui
This commit is contained in:
Shiny Nematoda 2023-08-30 09:03:08 +00:00
parent f5f6ded8b1
commit 452f66a19c
8 changed files with 374 additions and 360 deletions

View file

@ -1,12 +1,12 @@
<script setup>
import { ref, watch, onMounted, onBeforeUnmount, onUnmounted } from 'vue';
import { useManifest } from '@/scripts/util.js';
import muxjs from 'mux.js';
window.muxjs = muxjs;
import { useStore, useRoute } from '@/scripts/util.js';
import { useStore, useRoute, useManifest } from '@/scripts/util.js';
import { useData, usePlayer } from '@/stores/player.js';
import { useAlert } from '@/stores/misc';
const player = usePlayer(),
data = useData(),
@ -108,7 +108,8 @@ async function Stream() {
}
})
.catch(err => {
console.error('Code: ' + err.code, err);
console.error(err);
useAlert.add('error: ' + e.code)
});
}
}