From 1f9defce620fd9840d912b700cfd30d5a6424f02 Mon Sep 17 00:00:00 2001 From: jules <1978643+julesferreira@users.noreply.github.com> Date: Sat, 2 Dec 2023 21:51:41 -0700 Subject: [PATCH] Allow playback to begin at given position Fix case mismatch: SDK: positionMs API: position_ms --- src/endpoints/PlayerEndpoints.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/endpoints/PlayerEndpoints.ts b/src/endpoints/PlayerEndpoints.ts index c468acc8..deab8d90 100644 --- a/src/endpoints/PlayerEndpoints.ts +++ b/src/endpoints/PlayerEndpoints.ts @@ -48,9 +48,9 @@ export default class PlayerEndpoints extends EndpointsBase { await this.putRequest('me/player', { device_ids, play }); } - public async startResumePlayback(device_id: string, context_uri?: string, uris?: string[], offset?: object, positionMs?: number) { + public async startResumePlayback(device_id: string, context_uri?: string, uris?: string[], offset?: object, position_ms?: number) { const params = this.paramsFor({ device_id }); - await this.putRequest(`me/player/play${params}`, { context_uri, uris, offset, positionMs }); + await this.putRequest(`me/player/play${params}`, { context_uri, uris, offset, position_ms }); } public async pausePlayback(device_id: string) {