Skip to content

Commit

Permalink
EPUB: fix media overlay playback
Browse files Browse the repository at this point in the history
For some reason `canplaythrough` is firing more than once
  • Loading branch information
johnfactotum committed Sep 26, 2024
1 parent e94b85c commit 22189f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epub.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ class MediaOverlay extends EventTarget {
audio.volume = this.#volume
audio.playbackRate = this.#rate
audio.play().catch(e => this.#error(e))
})
}, { once: true })
}
async start(sectionIndex, filter = () => true) {
this.#audio?.pause()
Expand Down

0 comments on commit 22189f1

Please sign in to comment.