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

[FEATURE] Added endpoint to seek current playback position #73

Merged
merged 16 commits into from
Aug 21, 2024

Conversation

justJavaProgrammer
Copy link
Contributor

Added HTTP endpoint to seek position to specified.

Http method: PUT
URI: /player/seek

Query parameters:

  • position - REQUIRED. integer, must be positive, a position greater than current track duration will cause an error
  • precision - OPTIONAL. case insensitive enum, one of: MILLIS, SECONDS. Default to millis. Precision is used to set the unit of time for seek position.

Response:

  • 204 NO CONTENT - command received
  • 400 BAD REQUEST - request is malformed, an error will be returned with reason code and human-readable description
  • 401 Unauthorized - missing access token

@justJavaProgrammer justJavaProgrammer added the enhancement New feature or request label Aug 21, 2024
@justJavaProgrammer justJavaProgrammer self-assigned this Aug 21, 2024
@justJavaProgrammer justJavaProgrammer linked an issue Aug 21, 2024 that may be closed by this pull request
@justJavaProgrammer justJavaProgrammer merged commit cacea72 into master Aug 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add endpoint to seek playback to specific position
1 participant