feat: update playback progress persistence interval to 60 seconds for improved performance

This commit is contained in:
tapframe 2026-03-30 16:14:23 +05:30
parent 2c2481d7d8
commit 2ff6cf6f82

View file

@ -44,6 +44,8 @@ import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
private const val PlaybackProgressPersistIntervalMs = 60_000L
@Composable
fun PlayerScreen(
title: String,
@ -496,7 +498,7 @@ fun PlayerScreen(
}
val now = WatchProgressClock.nowEpochMs()
if (now - lastProgressPersistEpochMs < 5_000L) {
if (now - lastProgressPersistEpochMs < PlaybackProgressPersistIntervalMs) {
return@LaunchedEffect
}
lastProgressPersistEpochMs = now