mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-09-02 21:04:10 +03:00
Update and tweak seeker
This commit is contained in:
+7
-4
@@ -74,7 +74,8 @@ fun PlaybackProgress(
|
||||
|
||||
Seeker(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
value = if (isDragged) seekPosition else position.content.toFloat() / duration.toFloat(),
|
||||
value = position.content.toFloat() / duration.toFloat(),
|
||||
thumbValue = if (isDragged) seekPosition else position.content.toFloat() / duration.toFloat(),
|
||||
readAheadValue = position.buffer.toFloat() / duration.toFloat(),
|
||||
onValueChange = { value ->
|
||||
seekPosition = value
|
||||
@@ -83,10 +84,12 @@ fun PlaybackProgress(
|
||||
onSeek((seekPosition * duration).toLong())
|
||||
},
|
||||
colors = SeekerDefaults.seekerColors(
|
||||
trackColor = Color(0x33FFFFFF),
|
||||
readAheadColor = Color(0xCCFFFFFF),
|
||||
trackColor = Color(0x20FFFFFF),
|
||||
readAheadColor = Color(0x80FFFFFF),
|
||||
),
|
||||
dimensions = SeekerDefaults.seekerDimensions(
|
||||
thumbRadius = thumbRadius,
|
||||
),
|
||||
dimensions = SeekerDefaults.seekerDimensions(thumbRadius = thumbRadius),
|
||||
interactionSource = interactionSource,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ compose = "1.5.0"
|
||||
compose-foundation = "1.5.0"
|
||||
compose-material = "1.5.0"
|
||||
compose-compiler = "1.5.1"
|
||||
seeker = "1.1.0"
|
||||
seeker = "1.2.1"
|
||||
|
||||
# Network
|
||||
jellyfin-sdk = "1.4.3"
|
||||
|
||||
Reference in New Issue
Block a user