From 0e7a5649ccc7e20fa5737b34e07d5425a29ad4ae Mon Sep 17 00:00:00 2001 From: Alistair1231 Date: Sun, 7 May 2023 19:23:07 +0000 Subject: [PATCH] seek instead of skip with action handlers --- client/components/app/StreamContainer.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/components/app/StreamContainer.vue b/client/components/app/StreamContainer.vue index cd2bd1cf..56b7af2b 100644 --- a/client/components/app/StreamContainer.vue +++ b/client/components/app/StreamContainer.vue @@ -366,9 +366,8 @@ export default { navigator.mediaSession.setActionHandler('seekbackward', this.mediaSessionSeekBackward) navigator.mediaSession.setActionHandler('seekforward', this.mediaSessionSeekForward) navigator.mediaSession.setActionHandler('seekto', this.mediaSessionSeekTo) - navigator.mediaSession.setActionHandler('previoustrack', this.mediaSessionPreviousTrack) - const hasNextChapter = this.$refs.audioPlayer && this.$refs.audioPlayer.hasNextChapter - navigator.mediaSession.setActionHandler('nexttrack', hasNextChapter ? this.mediaSessionNextTrack : null) + navigator.mediaSession.setActionHandler('previoustrack', this.mediaSessionSeekBackward) + navigator.mediaSession.setActionHandler('nexttrack', this.mediaSessionSeekForward) } else { console.warn('Media session not available') }