mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-17 17:01:30 +00:00
Merge 98a01b8b10 into 47ea6b5092
This commit is contained in:
commit
6dfed7fa3a
2 changed files with 15 additions and 9 deletions
|
|
@ -244,6 +244,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