mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-07-26 22:42:17 +00:00
fix(player): clamp skip-outro seek below the duration boundary
This commit is contained in:
parent
3236a7cc1b
commit
31420a88bf
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ private fun BoxScope.RenderPlaybackOverlays(
|
|||
onSkipInterval = { interval ->
|
||||
val rawMs = (interval.endTime * 1000.0).toLong()
|
||||
val durationMs = playbackSnapshot.durationMs
|
||||
val seekMs = if (durationMs > 0L) rawMs.coerceAtMost(durationMs) else rawMs
|
||||
val seekMs = if (durationMs > 0L) rawMs.coerceAtMost(durationMs - 1) else rawMs
|
||||
playerController?.seekTo(seekMs)
|
||||
scheduleProgressSyncAfterSeek()
|
||||
skipIntervalDismissed = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue