mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
added seeking to now playing/notification
This commit is contained in:
@@ -60,6 +60,13 @@ export const useSkipTo = () => {
|
||||
})
|
||||
}
|
||||
|
||||
export const useSeekTo = () => {
|
||||
return (position: number) =>
|
||||
trackPlayerCommands.enqueue(async () => {
|
||||
await TrackPlayer.seekTo(position)
|
||||
})
|
||||
}
|
||||
|
||||
export const useToggleRepeat = () => {
|
||||
const setRepeatMode = useStore(selectTrackPlayer.setRepeatMode)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user