Code cleaning + fix related to #86

This commit is contained in:
Shiny Nematoda 2022-12-10 06:08:31 +00:00
parent cfebd0beca
commit e7ef370387
No known key found for this signature in database
GPG key ID: 6506D50F5613A42D
17 changed files with 400 additions and 394 deletions

View file

@ -1,12 +1,5 @@
<script setup>
import {
ref,
watch,
onMounted,
onUpdated,
onBeforeUnmount,
onUnmounted,
} from 'vue';
import { ref, watch, onMounted, onBeforeUnmount, onUnmounted } from 'vue';
import muxjs from 'mux.js';
window.muxjs = muxjs;
@ -64,7 +57,7 @@ async function Stream() {
if (shaka.Player.isBrowserSupported) {
const audioPlayer = new shaka.Player(audio.value);
const codecs = useStore().getItem('codec');
const codecs = store.getItem('codec');
audioPlayer
.getNetworkingEngine()
@ -94,7 +87,7 @@ async function Stream() {
});
}
const quality = useStore().getItem('quality');
const quality = store.getItem('quality');
if (url) {
window.audioPlayer