<linkrel="alternate"type="application/rss+xml"href="/SpotifyAPI-NET/news/rss.xml"title="SpotifyAPI-NET Blog RSS Feed">
<linkrel="alternate"type="application/atom+xml"href="/SpotifyAPI-NET/news/atom.xml"title="SpotifyAPI-NET Blog Atom Feed"><titledata-react-helmet="true">Player | SpotifyAPI-NET</title><metadata-react-helmet="true"property="og:url"content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/web/player"><metadata-react-helmet="true"name="docusaurus_locale"content="en"><metadata-react-helmet="true"name="docusaurus_version"content="5.1.1"><metadata-react-helmet="true"name="docusaurus_tag"content="docs-default-5.1.1"><metadata-react-helmet="true"property="og:title"content="Player | SpotifyAPI-NET"><metadata-react-helmet="true"name="description"content="GetDevices"><metadata-react-helmet="true"property="og:description"content="GetDevices"><linkdata-react-helmet="true"rel="shortcut icon"href="/SpotifyAPI-NET/img/favicon.ico"><linkdata-react-helmet="true"rel="canonical"href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/web/player"><linkdata-react-helmet="true"rel="alternate"href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/web/player"hreflang="en"><linkdata-react-helmet="true"rel="alternate"href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/web/player"hreflang="x-default"><linkrel="stylesheet"href="/SpotifyAPI-NET/assets/css/styles.fa980c59.css">
Returning to the start of the current track should be performed using the <ahref="https://api.spotify.com/v1/me/player/seek"target="_blank"rel="noopener noreferrer">https://api.spotify.com/v1/me/player/seek</a> endpoint.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>[deviceId]</td><td>The id of the device this command is targeting. If not supplied, the user's currently active device is the target.</td><td><code>"XXXX-XXXX-XXXX-XXXX"</code></td></tr></tbody></table><p><strong>Usage</strong></p><divclass="codeBlockContainer_K1bP"><divclass="codeBlockContent_hGly csharp"><divtabindex="0"class="prism-code language-csharp codeBlock_23N8 thin-scrollbar"><divclass="codeBlockLines_39YC"style="color:#bfc7d5;background-color:#292d3e"><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">ErrorResponse error = _spotify.SkipPlaybackToPrevious();</span></div></div></div><buttontype="button"aria-label="Copy code to clipboard"class="copyButton_Ue-o">Copy</button></div></div><hr><h2><aaria-hidden="true"tabindex="-1"class="anchor enhancedAnchor_2LWZ"id="seekplayback"></a>SeekPlayback<aclass="hash-link"href="#seekplayback"title="Direct link to heading">#</a></h2><blockquote><p>Seeks to the given position in the user’s currently playing track.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>positionMs</td><td>The position in milliseconds to seek to. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song.</td><td><code>50</code></td></tr><tr><td>[deviceId]</td><td>The id of the device this command is targeting. If not supplied, the user's currently active device is the target.</td><td><code>"XXXX-XXXX-XXXX-XXXX"</code></td></tr></tbody></table><p><strong>Usage</strong></p><divclass="codeBlockContainer_K1bP"><divclass="codeBlockContent_hGly csharp"><divtabindex="0"class="prism-code language-csharp codeBlock_23N8 thin-scrollbar"><divclass="codeBlockLines_39YC"style="color:#bfc7d5;background-color:#292d3e"><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">ErrorResponse error = _spotify.SeekPlayback(50);</span></div></div></div><buttontype="button"aria-label="Copy code to clipboard"class="copyButton_Ue-o">Copy</button></div></div><hr><h2><aaria-hidden="true"tabindex="-1"class="anchor enhancedAnchor_2LWZ"id="setrepeatmode"></a>SetRepeatMode<aclass="hash-link"href="#setrepeatmode"title="Direct link to heading">#</a></h2><blockquote><p>Set the repeat mode for the user’s playback. Options are repeat-track, repeat-context, and off.</p></blockquote><p><strong>Parameters</strong></p><table><thead><tr><th>Name</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>state</td><td>track, context or off.</td><td><code>RepeatState.Track</code></td></tr><tr><td>[deviceId]</td><td>The id of the device this command is targeting. If not supplied, the user's currently active device is the target.</td><td><code>"XXXX-XXXX-XXXX-XXXX"</code></td></tr></tbody></table><p><strong>Usage</strong></p><divclass="codeBlockContainer_K1bP"><divclass="codeBlockContent_hGly csharp"><divtabindex="0"class="prism-code language-csharp codeBlock_23N8 thin-scrollbar"><divclass="codeBlockLines_39YC"style="color:#bfc7d5;background-color:#292d3e"><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">ErrorResponse error = _spotify.SetRepeatMode(RepeatState.Track);</span></div></div></div><buttontype="button"aria-label="Copy code to clipboard"class="copyButton_Ue-o">Copy</button></div></div><hr><h2><aaria-hidden="true"tabindex="-1"class="anchor enhancedAnchor_2LWZ"id="setvolume"></a>SetVolume<aclass="hash-link"href="#setvolume"title="Direct link to heading">#</a></h2><blockquote><p>Set the volume for the user’s current playback device.