From a8c7905f6d2260e122a6f2a9886b0c2d47307ef8 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 29 Jul 2022 19:06:52 -0500 Subject: [PATCH] Add:Bookmarks icon btn on library item page and ability to open player at specified time #796 --- client/components/app/StreamContainer.vue | 4 +- client/components/modals/BookmarksModal.vue | 14 ++++-- .../modals/bookmarks/BookmarkItem.vue | 3 +- client/pages/item/_id/index.vue | 48 +++++++++++++++---- client/players/PlayerHandler.js | 19 +++++--- 5 files changed, 64 insertions(+), 24 deletions(-) diff --git a/client/components/app/StreamContainer.vue b/client/components/app/StreamContainer.vue index cdd144fb..e951dbfd 100644 --- a/client/components/app/StreamContainer.vue +++ b/client/components/app/StreamContainer.vue @@ -381,7 +381,7 @@ export default { if (this.$refs.audioPlayer) this.$refs.audioPlayer.checkUpdateChapterTrack() }) - this.playerHandler.load(libraryItem, episodeId, true, this.initialPlaybackRate) + this.playerHandler.load(libraryItem, episodeId, true, this.initialPlaybackRate, payload.startTime) }, pauseItem() { this.playerHandler.pause() @@ -393,11 +393,13 @@ export default { }, mounted() { this.$eventBus.$on('cast-session-active', this.castSessionActive) + this.$eventBus.$on('playback-seek', this.seek) this.$eventBus.$on('play-item', this.playLibraryItem) this.$eventBus.$on('pause-item', this.pauseItem) }, beforeDestroy() { this.$eventBus.$off('cast-session-active', this.castSessionActive) + this.$eventBus.$off('playback-seek', this.seek) this.$eventBus.$off('play-item', this.playLibraryItem) this.$eventBus.$off('pause-item', this.pauseItem) } diff --git a/client/components/modals/BookmarksModal.vue b/client/components/modals/BookmarksModal.vue index 273feb0c..65307507 100644 --- a/client/components/modals/BookmarksModal.vue +++ b/client/components/modals/BookmarksModal.vue @@ -1,6 +1,11 @@