This commit is contained in:
solar141 2026-05-07 18:39:09 +02:00 committed by GitHub
commit 6dfed7fa3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 9 deletions

View file

@ -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()
}