fix: correct seeking to a sentence on web
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user