{"action":"closed","issue":{"url":"https://api.github.com/repos/spotify/web-api/issues/1094","repository_url":"https://api.github.com/repos/spotify/web-api","labels_url":"https://api.github.com/repos/spotify/web-api/issues/1094/labels{/name}","comments_url":"https://api.github.com/repos/spotify/web-api/issues/1094/comments","events_url":"https://api.github.com/repos/spotify/web-api/issues/1094/events","html_url":"https://github.com/spotify/web-api/issues/1094","id":384647907,"node_id":"MDU6SXNzdWUzODQ2NDc5MDc=","number":1094,"title":"Web API playlist does not resume","user":{"login":"chucklin72","id":807605,"node_id":"MDQ6VXNlcjgwNzYwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/807605?v=4","gravatar_id":"","url":"https://api.github.com/users/chucklin72","html_url":"https://github.com/chucklin72","followers_url":"https://api.github.com/users/chucklin72/followers","following_url":"https://api.github.com/users/chucklin72/following{/other_user}","gists_url":"https://api.github.com/users/chucklin72/gists{/gist_id}","starred_url":"https://api.github.com/users/chucklin72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chucklin72/subscriptions","organizations_url":"https://api.github.com/users/chucklin72/orgs","repos_url":"https://api.github.com/users/chucklin72/repos","events_url":"https://api.github.com/users/chucklin72/events{/privacy}","received_events_url":"https://api.github.com/users/chucklin72/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-27T06:45:42Z","updated_at":"2018-11-27T07:00:42Z","closed_at":"2018-11-27T07:00:42Z","author_association":"NONE","body":"<!--\r\n\r\nThanks for your interest in the Spotify Web API!\r\nIf you're submitting a bug, please use the following template.\r\nIf your issue is a feature request, please include your use-case so that we have all the necessary info.\r\n\r\n-->\r\n\r\n<!-- Title: Cannot retrieve profile for user with user ID \"^\" -->\r\n\r\nIssue found on November 27th 2018.\r\n\r\n#### Endpoint(s):\r\n* `PUT /v1/me/player/play`\r\n\r\n#### Scope(s):\r\n* [\"streaming\", \"user-read-birthdate\", \"user-read-email\", \"user-read-private\",\"user-modify-playback-state\",\"playlist-read-private\",\"user-read-playback-state\"]\r\n\r\n#### Steps to reproduce:\r\n```\r\nif (firstPlay) {\r\n                    var data = {};\r\n                    var _tracks = [];\r\n                    for (var i=0 ; i < this.tracks.length; i++ ) {\r\n                        var track = this.tracks[i];\r\n                        _tracks.push(track.track.uri);\r\n                    }\r\n                    data.uris = _tracks;\r\n                    $.ajax({\r\n                        url: \"https://api.spotify.com/v1/me/player/play?device_id=\" + device_id,\r\n                        type: \"PUT\",\r\n                        data: JSON.stringify(data),\r\n                        beforeSend: function(xhr){xhr.setRequestHeader('Authorization', 'Bearer ' + accessToken );},\r\n                        success: function(data) {\r\n                            console.log(data);\r\n                        },\r\n                        failure:function(data) {\r\n                            console.log(data);\r\n                        }\r\n                    });\r\nfirstPlay = false;\r\n                } else {\r\n                    console.log('resume');\r\n                    $.ajax({\r\n                        url: \"https://api.spotify.com/v1/me/player/play\",\r\n                        type: \"PUT\",\r\n                        beforeSend: function(xhr){xhr.setRequestHeader('Authorization', 'Bearer ' + accessToken );},\r\n                        success: function(data) {\r\n                            console.log(data);\r\n                        },\r\n                        failure:function(data) {\r\n                            console.log(data);\r\n                        }\r\n                    });\r\n\r\n                }\r\n```\r\n\r\n#### Expected behaviour:\r\nWhen the play is resumed the music should resume where it was paused\r\n\r\n#### Actual behaviour:\r\nplay starts at the beginning of the playlist\r\n\r\nI can pause using my code, then resume from spotify web player to the same device. When I try to resume I can see from spotify web player that the device resets to playing from the first song in the playlist.\r\n\r\n"}}
{"actor":{"display_login":"chucklin72"}}