<?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: player_state_changed event with wrong duration in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/player-state-changed-event-with-wrong-duration/m-p/5078434#M1612</link>
    <description>Same issue here. And it was already opened in the old issue tracker here: &lt;A href="https://github.com/spotify/web-playback-sdk/issues/115" target="_blank"&gt;https://github.com/spotify/web-playback-sdk/issues/115&lt;/A&gt;</description>
    <pubDate>Tue, 24 Nov 2020 19:54:01 GMT</pubDate>
    <dc:creator>kruemeline</dc:creator>
    <dc:date>2020-11-24T19:54:01Z</dc:date>
    <item>
      <title>player_state_changed event with wrong duration</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/player-state-changed-event-with-wrong-duration/m-p/5011475#M879</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;I have a problem with the &lt;EM&gt;player_state_changed event&lt;/EM&gt; and I need help.&lt;/SPAN&gt; &lt;SPAN class=""&gt;My React application makes use of&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Spotify Web Playback SDK to play songs, but when I skip a song the player_state_changed event is &lt;/SPAN&gt;&lt;SPAN&gt;triggered&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;multiple&lt;/SPAN&gt;&lt;SPAN&gt; times with some inconsistencies:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;SPAN class=""&gt;WObject = WebPlaybackState Object&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;1st event:&lt;/STRONG&gt; I can get data such as name and artists with the correct values, but in &lt;STRONG&gt;WObject&lt;/STRONG&gt; and &lt;STRONG&gt;WObject &amp;gt; track_window &amp;gt; current_track&lt;/STRONG&gt; the duration property appears with the value of the previous song.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;2nd event:&lt;/STRONG&gt; The duration appears with a value about 24ms less than the correct one.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;3rd event:&lt;/STRONG&gt; All values are correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is happening?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Aug 2020 17:53:01 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/player-state-changed-event-with-wrong-duration/m-p/5011475#M879</guid>
      <dc:creator>RuanMelo</dc:creator>
      <dc:date>2020-08-05T17:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: player_state_changed event with wrong duration</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/player-state-changed-event-with-wrong-duration/m-p/5077422#M1577</link>
      <description>&lt;P&gt;I have the same problem. By verifying with the local state and the previous track we can make it somewhat work but would be great if this could be corrected :+1&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 13:40:24 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/player-state-changed-event-with-wrong-duration/m-p/5077422#M1577</guid>
      <dc:creator>tobikabla</dc:creator>
      <dc:date>2020-11-23T13:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: player_state_changed event with wrong duration</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/player-state-changed-event-with-wrong-duration/m-p/5078434#M1612</link>
      <description>Same issue here. And it was already opened in the old issue tracker here: &lt;A href="https://github.com/spotify/web-playback-sdk/issues/115" target="_blank"&gt;https://github.com/spotify/web-playback-sdk/issues/115&lt;/A&gt;</description>
      <pubDate>Tue, 24 Nov 2020 19:54:01 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/player-state-changed-event-with-wrong-duration/m-p/5078434#M1612</guid>
      <dc:creator>kruemeline</dc:creator>
      <dc:date>2020-11-24T19:54:01Z</dc:date>
    </item>
  </channel>
</rss>

