EVOLUTION-MANAGER
Edit File: transfer_my_playback.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Transfer playback to a new device and determine if it should...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for transfer_my_playback {spotifyr}"><tr><td>transfer_my_playback {spotifyr}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Transfer playback to a new device and determine if it should start playing.</h2> <h3>Description</h3> <p>Transfer playback to a new device and determine if it should start playing. </p> <h3>Usage</h3> <pre> transfer_my_playback( device_ids, play = FALSE, authorization = get_spotify_authorization_code() ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>device_ids</code></td> <td> <p>Required. A character vector containing the ID of the device this on which playback should be started/transferred. Note: only a single device_id is currently supported.</p> </td></tr> <tr valign="top"><td><code>play</code></td> <td> <p>Optional. <br /> <code>TRUE</code>: Ensure playback happens on new device <br /> <code>FALSE</code> (default): keep the current playback state <br /> Note that a value of <code>FALSE</code> for the <code>play</code> parameter when also transferring to another <code>device_id</code> will not pause playback. To ensure that playback is paused on the new device you should send a pause command to the currently active device before transferring to the new <code>device_id</code>.</p> </td></tr> <tr valign="top"><td><code>authorization</code></td> <td> <p>Required. A valid access token from the Spotify Accounts service. See the <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/">Web API authorization Guide</a> for more details. Defaults to <code>spotifyr::get_spotify_access_token()</code>. The access token must have been issued on behalf of the current user. <br /> The access token must have the <code>user-modify-playback-state</code> scope authorized in order to control playback.</p> </td></tr> </table> <h3>Value</h3> <p>The response from the Spotify Web API on the <code>PUT</code> request, with a meaningful error message if the operation was not successful. </p> <h3>See Also</h3> <p>Other player functions: <code><a href="get_my_current_playback.html">get_my_current_playback</a>()</code>, <code><a href="get_my_currently_playing.html">get_my_currently_playing</a>()</code>, <code><a href="get_my_devices.html">get_my_devices</a>()</code>, <code><a href="get_my_recently_played.html">get_my_recently_played</a>()</code>, <code><a href="pause_my_playback.html">pause_my_playback</a>()</code>, <code><a href="seek_to_position.html">seek_to_position</a>()</code>, <code><a href="set_my_repeat_mode.html">set_my_repeat_mode</a>()</code>, <code><a href="skip_my_playback_previous.html">skip_my_playback_previous</a>()</code>, <code><a href="skip_my_playback.html">skip_my_playback</a>()</code>, <code><a href="start_my_playback.html">start_my_playback</a>()</code>, <code><a href="toggle_my_shuffle.html">toggle_my_shuffle</a>()</code> </p> <hr /><div style="text-align: center;">[Package <em>spotifyr</em> version 2.2.3 <a href="00Index.html">Index</a>]</div> </body></html>