mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 10:14:36 +02:00
Add:Local setting for autoplay next item in queue #603
This commit is contained in:
parent
772c7b3217
commit
dee4ca3559
7 changed files with 44 additions and 11 deletions
|
@ -148,8 +148,12 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
mediaFinished(libraryItemId, episodeId) { // Play next item in queue
|
||||
if (!this.playerQueueItems.length) return
|
||||
mediaFinished(libraryItemId, episodeId) {
|
||||
// Play next item in queue
|
||||
if (!this.playerQueueItems.length || !this.$store.state.playerQueueAutoPlay) {
|
||||
// TODO: Set media finished flag so play button will play next queue item
|
||||
return
|
||||
}
|
||||
var currentQueueIndex = this.playerQueueItems.findIndex((i) => {
|
||||
if (episodeId) return i.libraryItemId === libraryItemId && i.episodeId === episodeId
|
||||
return i.libraryItemId === libraryItemId
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue