public async transferPlayback()

in src/endpoints/PlayerEndpoints.ts [44:49]


    public async transferPlayback(device_ids: string[], play?: boolean) {
        if (device_ids.length > 1) {
            throw new Error("Although an array is accepted, only a single device_id is currently supported. Supplying more than one will return 400 Bad Request");
        }
        await this.putRequest('me/player', { device_ids, play });
    }