MCPcopy
hub / github.com/spotipy-dev/spotipy / transfer_playback

Method transfer_playback

spotipy/client.py:1992–2003  ·  view source on GitHub ↗

Transfer playback to another device. Note that the API accepts a list of device ids, but only actually supports one. Parameters: - device_id - transfer playback to this device - force_play - true: after transfer, play. false:

(self, device_id, force_play=True)

Source from the content-addressed store, hash-verified

1990 additional_types=additional_types)
1991
1992 def transfer_playback(self, device_id, force_play=True):
1993 """ Transfer playback to another device.
1994 Note that the API accepts a list of device ids, but only
1995 actually supports one.
1996
1997 Parameters:
1998 - device_id - transfer playback to this device
1999 - force_play - true: after transfer, play. false:
2000 keep current state.
2001 """
2002 data = {"device_ids": [device_id], "play": force_play}
2003 return self._put("me/player", payload=data)
2004
2005 def start_playback(
2006 self, device_id=None, context_uri=None, uris=None, offset=None, position_ms=None

Callers

nothing calls this directly

Calls 1

_putMethod · 0.95

Tested by

no test coverage detected