mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-28 14:54:38 +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
|
@ -137,8 +137,22 @@ export default {
|
|||
this.isHovering = false
|
||||
},
|
||||
playClick() {
|
||||
const queueItems = [
|
||||
{
|
||||
libraryItemId: this.book.id,
|
||||
libraryId: this.book.libraryId,
|
||||
episodeId: null,
|
||||
title: this.bookTitle,
|
||||
subtitle: this.bookAuthors.map((au) => au.name).join(', '),
|
||||
caption: '',
|
||||
duration: this.media.duration || null,
|
||||
coverPath: this.media.coverPath || null
|
||||
}
|
||||
]
|
||||
|
||||
this.$eventBus.$emit('play-item', {
|
||||
libraryItemId: this.book.id
|
||||
libraryItemId: this.book.id,
|
||||
queueItems
|
||||
})
|
||||
},
|
||||
clickEdit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue