Update LocalAudioPlayer and chapters view for improved functionality

This commit is contained in:
lykos 2025-10-05 18:54:32 +13:00
parent 123351e08a
commit 98a01b8b10
2 changed files with 15 additions and 9 deletions

View file

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