Skip to content

Commit

Permalink
Update player position more frequently (closes 1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
z-huang committed Aug 14, 2024
1 parent 0ac1169 commit 8c0c989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/zionhuang/music/ui/player/Player.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fun BottomSheetPlayer(
LaunchedEffect(playbackState) {
if (playbackState == STATE_READY) {
while (isActive) {
delay(500)
delay(100)
position = playerConnection.player.currentPosition
duration = playerConnection.player.duration
}
Expand Down

0 comments on commit 8c0c989

Please sign in to comment.