[GH-ISSUE #51] Start playback at position_ms #17

Closed
opened 2026-02-27 20:22:37 +03:00 by kerem · 3 comments
Owner

Originally created by @Rigellute on GitHub (Sep 1, 2019).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/51

Firstly, thank you for creating this amazing crate, it's made working with the spotify API so fun.

I have this usecase

As a user, I should be able to toggle play/pause and resume playback at the previous position.

Looks like the spotify api let's you pass in position_ms to the play endpoint https://developer.spotify.com/documentation/web-api/reference/player/start-a-users-playback/

Which I think is what I need?

Potential solution

Pass position_ms as a fourth paramter to the start_playback function.

Or perhaps I am missing something? Is there an existing way of resuming playback?

Originally created by @Rigellute on GitHub (Sep 1, 2019). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/51 Firstly, thank you for creating this amazing crate, it's made working with the spotify API so fun. I have this usecase > As a user, I should be able to toggle play/pause and resume playback at the previous position. Looks like the spotify api let's you pass in `position_ms` to the `play` endpoint https://developer.spotify.com/documentation/web-api/reference/player/start-a-users-playback/ Which I think is what I need? #### Potential solution Pass `position_ms` as a fourth paramter to the `start_playback` function. Or perhaps I am missing something? Is there an existing way of resuming playback?
kerem closed this issue 2026-02-27 20:22:37 +03:00
Author
Owner

@ramsayleung commented on GitHub (Sep 3, 2019):

No, you didn't do anything wrong or miss something, it's just my mistake. It seems when I develop this crate, Spotify doesn't provide such an argument, I will fix it later.

<!-- gh-comment-id:527274493 --> @ramsayleung commented on GitHub (Sep 3, 2019): No, you didn't do anything wrong or miss something, it's just my mistake. It seems when I develop this crate, Spotify doesn't provide such an argument, I will fix it later.
Author
Owner

@ramsayleung commented on GitHub (Sep 3, 2019):

And just feels free to make a PR to fix this issue, it's easy and interesting, doesn't it :)

<!-- gh-comment-id:527274799 --> @ramsayleung commented on GitHub (Sep 3, 2019): And just feels free to make a PR to fix this issue, it's easy and interesting, doesn't it :)
Author
Owner

@Rigellute commented on GitHub (Sep 3, 2019):

Cool thanks. Have raised a PR adding this 👍

<!-- gh-comment-id:527636154 --> @Rigellute commented on GitHub (Sep 3, 2019): Cool thanks. Have raised a PR adding this 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rspotify#17
No description provided.