Transfer playback to null device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page