Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playerAPI.play(contentItem, skipToTrackIndex...) doesn't play the item at specified index, rather just plays track from start #453

Open
yeetmaster69 opened this issue Jan 26, 2025 · 1 comment

Comments

@yeetmaster69
Copy link

I am trying to play a song from a specified index using the playerAPI.play(_ contentItem:skipToTrackIndex:) function. I specify the index as 50000 (the duration of the track is 184665), and call the function. But every time I call the function, it just plays the track from the beginning. How do I properly implement this function?

I have this code here

appRemote.playerAPI?.play(contentAPIItem, skipToTrackIndex: 50000, callback: { result, error in
print(result)
})

No error is thrown and the result is printed, but it doesn't start playing from the specified index.

@yeetmaster69
Copy link
Author

Ahhh it seems my interpretation of this function may be wrong. Is this function just for skipping to tracks in playlists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant