fix: correct seeking to a sentence on web

This commit is contained in:
Antoine Jaury
2026-09-30 11:18:54 +02:00
parent 880aba06a2
commit d3a0e09f9c
2 changed files with 3 additions and 1 deletions
@@ -24,7 +24,8 @@ internal class WebAudioPlayer : AudioPlayer {
get() = (audio?.duration?.takeIf { it.isFinite() } ?: 0.0).seconds
override fun seekTo(position: Duration) {
audio?.currentTime = position.inWholeMicroseconds.toDouble()
audio?.currentTime = position.inWholeMilliseconds.toDouble() / 1000
audio?.play()
}
override fun load(uri: String) {