Announcements

Help Wizard

Step 1

NEXT STEP

Transfer playback to null device

Transfer playback to null device

Is it possible to transfer playback to a null device with the Spotify API? Aka clear the active device?

I did this but it's not working:

static async clearDevicePlayback(): Promise<void> {
try {
// Simply clear the active device by setting empty device_ids
await this.spotifyApiRequest('me/player', {
method: 'PUT',
body: JSON.stringify({
device_ids: [],
play: false
})
})
} catch (error) {
console.error('Error clearing device playback:', error)
}
}
Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random