Update src/components/Player.vue

This commit is contained in:
Shiny Nematoda 2023-11-18 14:13:08 +00:00
parent c07b3703f6
commit 19caacf805

View file

@ -43,7 +43,7 @@ async function Stream() {
const audioPlayer = new shaka.Player(),
codecs = store.getItem('codec');
audioPlayer.attach(audio.value)
await audioPlayer.attach(audio.value)
audioPlayer.getNetworkingEngine().registerRequestFilter((_type, req) => {
const headers = req.headers;