client: add media session notification

This commit is contained in:
geoffrey45
2021-12-27 16:26:24 +03:00
parent fd02390f71
commit 4f80ce29bb
3 changed files with 69 additions and 3 deletions
+2
View File
@@ -1,6 +1,7 @@
import { ref } from "@vue/reactivity";
import perks from "./perks";
import media from "./mediaNotification.js"
const audio = ref(new Audio()).value;
const pos = ref(0);
@@ -32,6 +33,7 @@ const playAudio = (path) => {
function playNext() {
playAudio(perks.next.value.filepath);
perks.current.value = perks.next.value;
media.showMediaNotif()
}
function playPrev() {