mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-25 13:24:57 +02:00
Add:Player queue for audiobooks #1077
This commit is contained in:
parent
3357ccfaf3
commit
78559520ab
12 changed files with 221 additions and 24 deletions
|
@ -72,11 +72,23 @@ export default {
|
|||
this.expanded = !this.expanded
|
||||
},
|
||||
goToTimestamp(time) {
|
||||
const queueItem = {
|
||||
libraryItemId: this.libraryItemId,
|
||||
libraryId: this.libraryItem.libraryId,
|
||||
episodeId: null,
|
||||
title: this.metadata.title,
|
||||
subtitle: this.metadata.authors.map((au) => au.name).join(', '),
|
||||
caption: '',
|
||||
duration: this.media.duration || null,
|
||||
coverPath: this.media.coverPath || null
|
||||
}
|
||||
|
||||
if (this.$store.getters['getIsMediaStreaming'](this.libraryItemId)) {
|
||||
this.$eventBus.$emit('play-item', {
|
||||
libraryItemId: this.libraryItemId,
|
||||
episodeId: null,
|
||||
startTime: time
|
||||
startTime: time,
|
||||
queueItems: [queueItem]
|
||||
})
|
||||
} else {
|
||||
const payload = {
|
||||
|
@ -86,7 +98,8 @@ export default {
|
|||
this.$eventBus.$emit('play-item', {
|
||||
libraryItemId: this.libraryItemId,
|
||||
episodeId: null,
|
||||
startTime: time
|
||||
startTime: time,
|
||||
queueItems: [queueItem]
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue