mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-01-29 14:29:40 +00:00
Update LocalAudioPlayer and chapters view for improved functionality
This commit is contained in:
parent
123351e08a
commit
98a01b8b10
2 changed files with 15 additions and 9 deletions
|
|
@ -231,6 +231,11 @@ export default class LocalAudioPlayer extends EventEmitter {
|
|||
}
|
||||
|
||||
play() {
|
||||
// Emit pause-chapter event to stop any other chapter playing
|
||||
if (this.ctx.$eventBus) {
|
||||
this.ctx.$eventBus.$emit('pause-chapter')
|
||||
}
|
||||
|
||||
this.playWhenReady = true
|
||||
if (this.player) this.player.play()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue