diff --git a/src/components/Player/mini-player.tsx b/src/components/Player/mini-player.tsx
index 32509e9c..ea616db1 100644
--- a/src/components/Player/mini-player.tsx
+++ b/src/components/Player/mini-player.tsx
@@ -6,7 +6,7 @@ import TextTicker from 'react-native-text-ticker'
import PlayPauseButton from './components/buttons'
import { TextTickerConfig } from './component.config'
import { RunTimeSeconds } from '../Global/helpers/time-codes'
-import { MINIPLAYER_UPDATE_INTERVAL } from '../../player/config'
+import { UPDATE_INTERVAL } from '../../player/config'
import { Progress as TrackPlayerProgress } from 'react-native-track-player'
import { useProgress } from '../../providers/Player/hooks/queries'
@@ -171,7 +171,7 @@ function MiniPlayerRuntime({ duration }: { duration: number }): React.JSX.Elemen
- {Math.max(0, Math.floor(duration))}
+ {Math.max(0, Math.round(duration))}
@@ -180,13 +180,13 @@ function MiniPlayerRuntime({ duration }: { duration: number }): React.JSX.Elemen
}
function MiniPlayerRuntimePosition(): React.JSX.Element {
- const { position } = useProgress(MINIPLAYER_UPDATE_INTERVAL)
+ const { position } = useProgress(UPDATE_INTERVAL)
- return {Math.max(0, Math.floor(position))}
+ return {Math.max(0, Math.round(position))}
}
function MiniPlayerProgress(): React.JSX.Element {
- const progress = useProgress(MINIPLAYER_UPDATE_INTERVAL)
+ const progress = useProgress(UPDATE_INTERVAL)
return (