<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API - playback timestamp in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/API-playback-timestamp/m-p/5460860#M7109</link>
    <description>&lt;P&gt;Sadly still an issue &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 20:41:54 GMT</pubDate>
    <dc:creator>PockelHockel</dc:creator>
    <dc:date>2022-11-21T20:41:54Z</dc:date>
    <item>
      <title>API - playback timestamp</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-playback-timestamp/m-p/5291948#M3571</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is a Problem regarding the web api get playback state /v1/me/player&lt;/P&gt;&lt;P&gt;the timestamp field is inconsistent. I am trying to accurately get users playback / progress time&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The documentation says : timestamp [integer] - Unix Millisecond Timestamp when data was fetched.&lt;/P&gt;&lt;P&gt;however I am finding that&lt;/P&gt;&lt;P&gt;1. if i start playing a track, the timestamp comes back as the time when the song started. with the current time this allows you to infer the current time accurately, however&lt;/P&gt;&lt;P&gt;2. if playback is paused, or skipped to a different time, the timestamp is now this new time when it was resumed. without knowing the progress at that time however you can't really infer (precisely) the playback time.&lt;/P&gt;&lt;P&gt;3. using the progress_ms field and counting the time since the data was received is not precise and varies in accuracy as it takes a while until the data is received and processed in the endpoint.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Shouldn't the timestamp (as per documentation) always be the current time of the data request, i.e. when it was fetched? then the frontend / endpoint could accurately know at what time the response was send and determine how much time has passed since&lt;BR /&gt;i.e. accurate progress = progress_ms + ( time_now - timestamp )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If there is another way to accurately know the playback time I am all ears, but it seems to me this timestamp field is not quite what it is supposed to be / as described.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance for any help,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 13:07:41 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-playback-timestamp/m-p/5291948#M3571</guid>
      <dc:creator>Wonday</dc:creator>
      <dc:date>2021-11-09T13:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: API - playback timestamp</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-playback-timestamp/m-p/5292332#M3578</link>
      <description>&lt;P&gt;I'm also having this issue and I have been trying workaround for weeks now.&lt;/P&gt;&lt;P&gt;From what I have seen online, the "timestamp field not acting as it should" issue has been going for years now (see &lt;A href="https://github.com/spotify/web-api/issues/1073" target="_blank"&gt;https://github.com/spotify/web-api/issues/1073&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;I tried to estimate the actual timestamp field by getting the average value of the Date.now() before and after doing the API call but it isn't consistent either.&lt;/P&gt;&lt;P&gt;As you realized, in the API, timestamp is only modified when there is an update on the player, not when the API call has been processed, sadly.&lt;/P&gt;&lt;P&gt;If you, or anybody else, has found a fix for this or any workaround, I'd be interested to be alerted.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 04:26:47 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-playback-timestamp/m-p/5292332#M3578</guid>
      <dc:creator>Asperatus</dc:creator>
      <dc:date>2021-11-10T04:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: API - playback timestamp</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-playback-timestamp/m-p/5460860#M7109</link>
      <description>&lt;P&gt;Sadly still an issue &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 20:41:54 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-playback-timestamp/m-p/5460860#M7109</guid>
      <dc:creator>PockelHockel</dc:creator>
      <dc:date>2022-11-21T20:41:54Z</dc:date>
    </item>
  </channel>
</rss>

