We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34026ca commit c0f7c97Copy full SHA for c0f7c97
src/hooks/player/functions/controls.ts
@@ -37,10 +37,8 @@ export async function previous(): Promise<void> {
37
* @param index The track index to skip to, to skip multiple tracks
38
*/
39
export async function skip(index: number | undefined): Promise<void> {
40
- const { state } = await TrackPlayer.getPlaybackState()
41
-
42
if (!isUndefined(index)) await TrackPlayer.skip(index)
43
else await TrackPlayer.skipToNext()
44
45
- if (state === State.Playing) await TrackPlayer.play()
+ await TrackPlayer.play()
46
}
0 commit comments