Skip to content

Commit

Permalink
Add support for new option 'position_ms' in player.PlayOpt() (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLoch authored and zmb3 committed Sep 12, 2018
1 parent 929e1de commit de6745c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions player.go
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ type PlayOptions struct {
// Only available when context corresponds to an album or playlist
// object, or when the URIs parameter is used.
PlaybackOffset *PlaybackOffset `json:"offset,omitempty"`
// PositionMs Indicates from what position to start playback.
// Must be a positive number. Passing in a position that is greater
// than the length of the track will cause the player to start playing the next song.
// Defaults to 0, starting a track from the beginning.
PositionMs int `json:"position_ms,omitempty"`
}

// RecentlyPlayedOptions describes options for the recently-played request. All
Expand Down

0 comments on commit de6745c

Please sign in to comment.