refactor: improve player package structure

This commit is contained in:
2026-06-22 13:18:53 +02:00
parent 1028b748a9
commit 5e3dc3059b
6 changed files with 253 additions and 195 deletions
@@ -0,0 +1,9 @@
package fr.ajaury.gwenedeg.player.model
data class PlaybackTiming(
val positionMs: Long = 0L,
val durationMs: Long = 0L,
) {
val progress: Float
get() = if (durationMs > 0) (positionMs.toFloat() / durationMs).coerceIn(0f, 1f) else 0f
}