Exit fullscreen when song ends

This commit is contained in:
lucast committed 2026-09-25 22:50:44 +02:00
1 parent 23f5709c68
commit 9cbf96564f
1 file changed
+2
+2
View File
@@ -1,6 +1,7 @@
import { Howl } from "howler"
export default defineNuxtPlugin((nuxtApp) => {
const { close: closeFullscreen } = useFullscreen()
const VOLUME_STORAGE_KEY = "music-v2-player-volume"
const DEFAULT_VOLUME = 0.5
@@ -117,6 +118,7 @@ export default defineNuxtPlugin((nuxtApp) => {
sound.value?.volume(storedVolume.value)
},
onend: () => {
void closeFullscreen()
next()
stopTracking()
},